From 8f1c2965af74bcb63f4e93645d392ff069df2100 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 7 Feb 2017 13:34:27 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20build=20warning=20in=20asn.c=20with=20?= =?UTF-8?q?=E2=80=9Cpotentially=20uninitialized=20local=20variable=20'leng?= =?UTF-8?q?th'=20used=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wolfcrypt/src/asn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 55993606b..e63b6cc80 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -1884,7 +1884,7 @@ static int DecryptKey(const char* password, int passwordSz, byte* salt, int ToTraditionalEnc(byte* input, word32 sz,const char* password,int passwordSz) { word32 inOutIdx = 0, oid; - int ret = 0, first, second, length, version, saltSz, id; + int ret = 0, first, second, length = 0, version, saltSz, id; int iterations = 0; #ifdef WOLFSSL_SMALL_STACK byte* salt = NULL; @@ -2017,7 +2017,7 @@ int DecryptContent(byte* input, word32 sz,const char* password,int passwordSz) { word32 inOutIdx = 0, oid; int ret = 0; - int first, second, length, version, saltSz, id; + int first, second, length = 0, version, saltSz, id; int iterations = 0; #ifdef WOLFSSL_SMALL_STACK byte* salt = NULL;