mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 09:39:59 +00:00
Removed <warning: potential uninitialized reference to
"buf" in function "lwip_recvfrom">
This commit is contained in:
parent
8980c3f74e
commit
c1c9983cfe
@ -396,7 +396,7 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
|
|||||||
if (!sock)
|
if (!sock)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
while ( !done ) {
|
do {
|
||||||
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom: top while sock->lastdata=%p\n", sock->lastdata));
|
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom: top while sock->lastdata=%p\n", sock->lastdata));
|
||||||
/* Check if there is data left from the last recv operation. */
|
/* Check if there is data left from the last recv operation. */
|
||||||
if (sock->lastdata) {
|
if (sock->lastdata) {
|
||||||
@ -466,7 +466,7 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
|
|||||||
} else {
|
} else {
|
||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
} /* while ( !done ) */
|
} while (!done);
|
||||||
|
|
||||||
/* Check to see from where the data was.*/
|
/* Check to see from where the data was.*/
|
||||||
if (from && fromlen) {
|
if (from && fromlen) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user