mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 15:16:03 +00:00
lwip_accept: fixed warning about accessing uninitialized 'port' when SOCKETS_DEBUG is enabled
This commit is contained in:
parent
1b98a64e90
commit
5be300736e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user