From 01cd43c3198e8f94fa108eebc5dbbf5b6cdf3f18 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Wed, 2 Mar 2016 11:31:08 -0700 Subject: [PATCH] Seperate declaration and assignment per c99 standards --- src/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 417841ad4..3fb10d708 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1763,13 +1763,14 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx) { byte havePSK = 0; byte haveAnon = 0; + byte newSSL; byte haveRSA = 0; (void) haveAnon; /* Squash unused var warnings */ if(!ssl || !ctx || ssl->suites == NULL) return BAD_FUNC_ARG; - byte newSSL = ssl->ctx == NULL; /* Assign after null check */ + newSSL = ssl->ctx == NULL; /* Assign after null check */ #ifndef NO_PSK if (ctx->server_hint[0] && ssl->arrays == NULL) {