mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-04 17:47:03 +03:00
socket-util: initialize variable with cleanup attribute
Follow-up for 83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160. Fixes CID#1448460.
This commit is contained in:
parent
edf1b5ec92
commit
f96f5d54b8
@ -298,7 +298,7 @@ bool socket_ipv6_is_supported(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool socket_ipv6_is_enabled(void) {
|
bool socket_ipv6_is_enabled(void) {
|
||||||
_cleanup_free_ char *v;
|
_cleanup_free_ char *v = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
/* Much like socket_ipv6_is_supported(), but also checks that the sysctl that disables IPv6 on all
|
/* Much like socket_ipv6_is_supported(), but also checks that the sysctl that disables IPv6 on all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user