mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 20:29:04 +00:00
Removed warning "empty body in an if statement" in tcp_receive() for LWIP_DEBUG=0
This commit is contained in:
parent
f66bbda8b1
commit
c9ebb895a1
@ -939,14 +939,16 @@ tcp_receive(struct tcp_pcb *pcb)
|
||||
p->len = 0;
|
||||
p = p->next;
|
||||
}
|
||||
if(pbuf_header(p, -off))
|
||||
if(pbuf_header(p, -off)) {
|
||||
/* Do we need to cope with this failing? Assert for now */
|
||||
LWIP_ASSERT("pbuf_header failed", 0);
|
||||
}
|
||||
} else {
|
||||
if(pbuf_header(inseg.p, -off))
|
||||
if(pbuf_header(inseg.p, -off)) {
|
||||
/* Do we need to cope with this failing? Assert for now */
|
||||
LWIP_ASSERT("pbuf_header failed", 0);
|
||||
}
|
||||
}
|
||||
/* KJM following line changed to use p->payload rather than inseg->p->payload
|
||||
to fix bug #9076 */
|
||||
inseg.dataptr = p->payload;
|
||||
|
Loading…
Reference in New Issue
Block a user