lwip_accept: fixed warning about accessing uninitialized 'port' when SOCKETS_DEBUG is enabled

This commit is contained in:
Simon Goldschmidt 2011-09-09 23:20:34 +02:00
parent 1b98a64e90
commit 5be300736e

View File

@ -386,7 +386,7 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
struct lwip_sock *sock, *nsock;
struct netconn *newconn;
ipX_addr_t naddr;
u16_t port;
u16_t port = 0;
int newsock;
err_t err;
SYS_ARCH_DECL_PROTECT(lev);