Merge pull request #18910 from yuwata/socket-util-initialize-variable

socket-util: initialize variable with cleanup attribute
This commit is contained in:
Anita Zhang
2021-03-06 22:37:01 -08:00
committed by GitHub
+1 -1
View File
@@ -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