Minor changes: fix a warning: "src\core\ipv4\ip_frag.c (782) : warning: potential uninitialized reference to "newpbuflen" in func "_ip_frag""

This commit is contained in:
fbernon 2008-01-22 18:56:40 +00:00
parent 8d0f689cb5
commit c580c2be75

View File

@ -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 */