From 5be300736e805da6a1d6c32132bcd0193be79f56 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 9 Sep 2011 23:20:34 +0200 Subject: [PATCH] lwip_accept: fixed warning about accessing uninitialized 'port' when SOCKETS_DEBUG is enabled --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index 2982f191..81cbf24e 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -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);