From f975754ad908111f14c698f093ff1d787ecb55f2 Mon Sep 17 00:00:00 2001 From: kieranm Date: Wed, 13 Nov 2002 21:53:36 +0000 Subject: [PATCH] Initialize err in do_close to prevent compiler warning. --- src/api/api_msg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/api_msg.c b/src/api/api_msg.c index a914ff31..0376e92e 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -494,6 +494,9 @@ static void do_close(struct api_msg_msg *msg) { err_t err; + + err = ERR_OK; + if(msg->conn->pcb.tcp != NULL) { switch(msg->conn->type) { #if LWIP_UDP