]> git.ozlabs.org Git - petitboot/blobdiff - discover/network.c
discover: Fix potentially-uninitialised variables
[petitboot] / discover / network.c
index b9b0c5043f58e3131b0789f1948257051d0f5831..87075fcf91925666ed2b8c13757d13dff45b59fc 100644 (file)
@@ -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);