From c580c2be7525649d88fa8d86de0c690d63a45375 Mon Sep 17 00:00:00 2001 From: fbernon Date: Tue, 22 Jan 2008 18:56:40 +0000 Subject: [PATCH] Minor changes: fix a warning: "src\core\ipv4\ip_frag.c (782) : warning: potential uninitialized reference to "newpbuflen" in func "_ip_frag"" --- src/core/ipv4/ip_frag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/ipv4/ip_frag.c b/src/core/ipv4/ip_frag.c index 1a3730ef..e06ba009 100644 --- a/src/core/ipv4/ip_frag.c +++ b/src/core/ipv4/ip_frag.c @@ -634,7 +634,8 @@ ip_frag(struct pbuf *p, struct netif *netif, struct ip_addr *dest) u16_t poff = IP_HLEN; u16_t tmp; #if !IP_FRAG_USES_STATIC_BUF - u16_t newpbuflen, left_to_copy; + u16_t newpbuflen = 0; + u16_t left_to_copy; #endif /* Get a RAM based MTU sized pbuf */