From 9a4614f6e1fbb703f6e755e9eb86b003eb757efb Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 19 Nov 2019 05:35:22 -0800 Subject: [PATCH] Fix for possible uninitialized `memSz` in bio.c --- src/bio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bio.c b/src/bio.c index b7d3407d5..88e3651aa 100644 --- a/src/bio.c +++ b/src/bio.c @@ -1310,9 +1310,8 @@ int wolfSSL_BIO_get_len(WOLFSSL_BIO *bio) { int len; #ifndef NO_FILESYSTEM - long memSz; + long memSz = 0, curr = 0; XFILE file; - long curr = 0; #endif WOLFSSL_ENTER("wolfSSL_BIO_get_len");