From 9d083df8886809c45e8db4d06ecdc2232ccd3048 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 17 Oct 2016 11:16:30 +0000 Subject: [PATCH] Move declaration of var fdi to the correct block to avoid warning --- ncat/ncat_listen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c index 3a252a5b5..eda580172 100644 --- a/ncat/ncat_listen.c +++ b/ncat/ncat_listen.c @@ -326,7 +326,7 @@ static int ncat_listen_stream(int proto) /* We pass these temporary descriptor sets to fselect, since fselect modifies the sets it receives. */ fd_set readfds = master_readfds, writefds = master_writefds; - struct fdinfo *fdi = NULL; + if (o.debug > 1) logdebug("selecting, fdmax %d\n", client_fdlist.fdmax); @@ -362,6 +362,7 @@ static int ncat_listen_stream(int proto) #ifdef HAVE_OPENSSL /* Is this an ssl socket pending a handshake? If so handle it. */ if (o.ssl && FD_ISSET(i, &sslpending_fds)) { + struct fdinfo *fdi = NULL; FD_CLR(i, &master_readfds); FD_CLR(i, &master_writefds); fdi = get_fdinfo(&client_fdlist, i);