From 09d929f7ff6c52619510939e724df438a9d5eab1 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 9 Jan 2024 20:51:10 +0100 Subject: [PATCH] Fix uninitialized variable warning introduced with last commit (at least reported by MS-VS C compiler) --- 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 6eef9d71..b97bdd7e 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -660,7 +660,7 @@ lwip_accept(int s, struct sockaddr *addr, socklen_t *addrlen) { struct lwip_sock *sock, *nsock; struct netconn *newconn; - ip_addr_t naddr; + ip_addr_t naddr = {0}; u16_t port = 0; int newsock; err_t err;