summaryrefslogtreecommitdiffstats
path: root/discover/network.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-11-08 14:23:32 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-11-13 14:25:02 +0800
commit59dbd08e2a8354e71578c0d7ca2283951a384801 (patch)
treec860fad5656275eead197e7b685b6ce11dfaa7f4 /discover/network.c
parent9d966d3d4a0d37ff8e3ca17e8cbca34feb4828dd (diff)
downloadtalos-petitboot-59dbd08e2a8354e71578c0d7ca2283951a384801.tar.gz
talos-petitboot-59dbd08e2a8354e71578c0d7ca2283951a384801.zip
discover: Fix potentially-uninitialised variables
We've been compiling with --enable-debug; this change fixes some problems exposed by the optimiser. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/network.c')
-rw-r--r--discover/network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/network.c b/discover/network.c
index b9b0c50..87075fc 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -369,6 +369,7 @@ static int network_handle_nlmsg(struct network *network, struct nlmsghdr *nlmsg)
info = NLMSG_DATA(nlmsg);
have_ifaddr = have_ifname = false;
+ mtu = 1;
attrlen = nlmsg->nlmsg_len - sizeof(*info);
OpenPOWER on IntegriCloud