From: Zhang Shengju Date: Thu, 21 Jan 2016 02:23:49 +0000 (+0000) Subject: ip-link: remove warning message X-Git-Tag: v4.5.0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb85526923d1de1857c2b1e6860a471f2a0ae1b9;p=thirdparty%2Fiproute2.git ip-link: remove warning message the warning was: iproute.c:301:12: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] features &= ~RTAX_FEATURE_ECN; ^ iproute.c:575:10: note: 'val' was declared here __u32 val; ^ Signed-off-by: Zhang Shengju --- diff --git a/ip/iproute.c b/ip/iproute.c index d5e3ebe26..afe70e123 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -572,7 +572,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) mxlock = *(unsigned*)RTA_DATA(mxrta[RTAX_LOCK]); for (i=2; i<= RTAX_MAX; i++) { - __u32 val; + __u32 val = 0U; if (mxrta[i] == NULL) continue;