diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-07 10:31:26 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-07 10:32:36 +0900 |
commit | f96f5d54b8e40b6fbd17e01234dee495de4b11c8 (patch) | |
tree | b425ea8623be55cfff5983603b660a8a0fc0d178 /src/basic | |
parent | edf1b5ec92873c335bdc6db1b65b0d5c6002e987 (diff) | |
download | systemd-f96f5d54b8e40b6fbd17e01234dee495de4b11c8.tar.gz |
socket-util: initialize variable with cleanup attribute
Follow-up for 83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160.
Fixes CID#1448460.
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/socket-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index fc90161745..8402e79c31 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 |