1
0
mirror of https://github.com/systemd/systemd synced 2025-10-03 18:54:45 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Anita Zhang
05e8862806
Merge pull request #18910 from yuwata/socket-util-initialize-variable
socket-util: initialize variable with cleanup attribute
2021-03-06 22:37:01 -08:00
Yu Watanabe
f96f5d54b8 socket-util: initialize variable with cleanup attribute
Follow-up for 83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160.

Fixes CID#1448460.
2021-03-07 10:32:36 +09:00

View File

@ -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