From: Yu Watanabe Date: Sun, 7 Mar 2021 01:31:26 +0000 (+0900) Subject: socket-util: initialize variable with cleanup attribute X-Git-Tag: v248-rc3~37^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18910%2Fhead;p=thirdparty%2Fsystemd.git socket-util: initialize variable with cleanup attribute Follow-up for 83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160. Fixes CID#1448460. --- diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index fc90161745a..8402e79c312 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -298,7 +298,7 @@ bool socket_ipv6_is_supported(void) { } bool socket_ipv6_is_enabled(void) { - _cleanup_free_ char *v; + _cleanup_free_ char *v = NULL; int r; /* Much like socket_ipv6_is_supported(), but also checks that the sysctl that disables IPv6 on all