diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-08 14:23:32 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-13 14:25:02 +0800 |
commit | 59dbd08e2a8354e71578c0d7ca2283951a384801 (patch) | |
tree | c860fad5656275eead197e7b685b6ce11dfaa7f4 /discover/network.c | |
parent | 9d966d3d4a0d37ff8e3ca17e8cbca34feb4828dd (diff) | |
download | talos-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.c | 1 |
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); |