Commit 5606e32
committed
parse: fix uninitialized variable
Fixes the build on Fedora 41:
In file included from /usr/include/glib-2.0/glib.h:117,
from ../src/parse.c:25:
In function ‘g_autoptr_cleanup_generic_gfree’,
inlined from ‘get_ip_family’ at ../src/parse.c:1918:22:
/usr/include/glib-2.0/glib/glib-autocleanups.h:32:3: error: ‘ip_str’ may be used uninitialized [-Werror=maybe-uninitialized]
32 | g_free (*pp);
| ^~~~~~~~~~~~
../src/parse.c: In function ‘get_ip_family’:
../src/parse.c:1918:22: note: ‘ip_str’ was declared here
1918 | g_autofree char *ip_str;
| ^~~~~~
cc1: all warnings being treated as errors1 parent 2392ad4 commit 5606e32
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1925 | 1925 | | |
1926 | 1926 | | |
1927 | 1927 | | |
1928 | | - | |
| 1928 | + | |
1929 | 1929 | | |
1930 | 1930 | | |
1931 | 1931 | | |
| |||
0 commit comments