Skip to content

Commit

Permalink
socket-util: initialize variable with cleanup attribute
Browse files Browse the repository at this point in the history
Follow-up for 83e03c4.

Fixes CID#1448460.
  • Loading branch information
yuwata committed Mar 7, 2021
1 parent edf1b5e commit f96f5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/socket-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f96f5d5

Please sign in to comment.