Module Name: src
Committed By: christos
Date: Sat Aug 22 05:45:57 UTC 2015
Modified Files:
src/external/bsd/dhcpcd/dist: dhcp.c
Log Message:
fix bogus gcc unitialized warning
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/external/bsd/dhcpcd/dist/dhcp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/dhcpcd/dist/dhcp.c
diff -u src/external/bsd/dhcpcd/dist/dhcp.c:1.33 src/external/bsd/dhcpcd/dist/dhcp.c:1.34
--- src/external/bsd/dhcpcd/dist/dhcp.c:1.33 Fri Aug 21 06:39:00 2015
+++ src/external/bsd/dhcpcd/dist/dhcp.c Sat Aug 22 01:45:57 2015
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcp.c,v 1.33 2015/08/21 10:39:00 roy Exp $");
+ __RCSID("$NetBSD: dhcp.c,v 1.34 2015/08/22 05:45:57 christos Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -713,7 +713,7 @@ uint16_t
dhcp_get_mtu(const struct interface *ifp)
{
const struct dhcp_message *dhcp;
- uint16_t mtu;
+ uint16_t mtu = 0; // XXX: gcc
if ((dhcp = D_CSTATE(ifp)->new) == NULL ||
has_option_mask(ifp->options->nomask, DHO_MTU) ||