1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

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
commit 05e8862806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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