mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-14 18:36:27 +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 lwip_sock *sock, *nsock;
|
||||||
struct netconn *newconn;
|
struct netconn *newconn;
|
||||||
ipX_addr_t naddr;
|
ipX_addr_t naddr;
|
||||||
u16_t port;
|
u16_t port = 0;
|
||||||
int newsock;
|
int newsock;
|
||||||
err_t err;
|
err_t err;
|
||||||
SYS_ARCH_DECL_PROTECT(lev);
|
SYS_ARCH_DECL_PROTECT(lev);
|
||||||
|
Loading…
Reference in New Issue
Block a user