diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-13 06:27:42 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-13 10:13:57 +0200 |
commit | 5ca50482493c880eac852bc0b7cf7fa9aab0a451 (patch) | |
tree | 1daee3f8281a8ebb22034beef4b677bf73799303 /src/network/networkctl.c | |
parent | Merge pull request #12777 from yuwata/libudev-enumerate-issue-12776 (diff) | |
download | systemd-5ca50482493c880eac852bc0b7cf7fa9aab0a451.tar.xz systemd-5ca50482493c880eac852bc0b7cf7fa9aab0a451.zip |
networkctl: fix use of uninitialized value
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index b265f1f056..901e88cc98 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -269,7 +269,7 @@ static int acquire_link_info(sd_bus *bus, sd_netlink *rtnl, char **patterns, Lin return log_error_errno(r, "Failed to enumerate links: %m"); for (i = reply; i; i = sd_netlink_message_next(i)) { - if (!GREEDY_REALLOC(links, allocated, c+1)) + if (!GREEDY_REALLOC0(links, allocated, c+1)) return -ENOMEM; r = decode_link(i, links + c, patterns); |