From a4a68959003a0e4efc681471188fe9089d5079ed Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 11 Jan 2019 09:42:41 -0800 Subject: [PATCH] Fix for scan-build "Value stored to 'err' is never read`" --- examples/client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client/client.c b/examples/client/client.c index 552bdc0db..abbdb1ca8 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -749,7 +749,7 @@ static void ClientRead(WOLFSSL* ssl, char* reply, int replyLen, int mustRead) elapsed = current_time(0) - start; if (elapsed > MAX_NON_BLOCK_SEC) { printf("Nonblocking read timeout\n"); - err = WOLFSSL_FATAL_ERROR; + ret = WOLFSSL_FATAL_ERROR; break; } }