Re: [libvirt PATCH] sockettest: testMaskNetwork: use g_auto

2020-11-19 Thread Daniel Henrique Barboza
On 11/19/20 1:01 PM, Ján Tomko wrote: This has the added benefit of 'gotnet' only being freed after it was possibly used in the output string. ../src/internal.h:519:27: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 519 | # define fprintf(fh, ...) g_fprintf(fh, __VA_ARG

[libvirt PATCH] sockettest: testMaskNetwork: use g_auto

2020-11-19 Thread Ján Tomko
This has the added benefit of 'gotnet' only being freed after it was possibly used in the output string. ../src/internal.h:519:27: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 519 | # define fprintf(fh, ...) g_fprintf(fh, __VA_ARGS__) | ^