Skip to content

Commit

Permalink
socket-util: initialize variable with cleanup attribute
Browse files Browse the repository at this point in the history
(cherry picked from commit f96f5d5)

Related: RHEL-30645
  • Loading branch information
yuwata authored and jacekmigacz committed Apr 23, 2024
1 parent 704ff20 commit a1a5f81
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 @@ -508,7 +508,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 a1a5f81

Please sign in to comment.