From 82a3d79c2f3a746b722000bd2e5abff927606492 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 23 Sep 2021 11:26:17 -0600 Subject: [PATCH] unnecessary variable init, else formatting in bio.c --- src/bio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bio.c b/src/bio.c index 891cec5f6..e2cf578b3 100644 --- a/src/bio.c +++ b/src/bio.c @@ -1667,11 +1667,12 @@ long wolfSSL_BIO_set_nbio(WOLFSSL_BIO* bio, long on) case WOLFSSL_BIO_SOCKET: #ifdef XFCNTL { - int ret = 0; + int ret; int flag = XFCNTL(bio->num, F_GETFL, 0); if (on) { ret = XFCNTL(bio->num, F_SETFL, flag | O_NONBLOCK); - } else { + } + else { ret = XFCNTL(bio->num, F_SETFL, flag & ~O_NONBLOCK); }