]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Silence a bogus gcc warning
authorRoy Marples <roy@marples.name>
Sat, 22 Aug 2015 12:52:08 +0000 (12:52 +0000)
committerRoy Marples <roy@marples.name>
Sat, 22 Aug 2015 12:52:08 +0000 (12:52 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index a77e4424cea95da1ad4dd5cbcb40f7d902564c29..c84516d586b595fcfc868abd6e19aa1b451de9ec 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -712,6 +712,7 @@ dhcp_get_mtu(const struct interface *ifp)
        const struct dhcp_message *dhcp;
        uint16_t mtu;
 
+       mtu = 0; /* bogus gcc warning */
        if ((dhcp = D_CSTATE(ifp)->new) == NULL ||
            has_option_mask(ifp->options->nomask, DHO_MTU) ||
            get_option_uint16(ifp->ctx, &mtu, dhcp, DHO_MTU) == -1)