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:
commit
05e8862806
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user