Skip to content

Commit 5662077

Browse files
Fix uninitialized before use warning in wc_Dilithium_PublicKeyDecode.
1 parent 9a79c41 commit 5662077

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12299,9 +12299,9 @@ int wc_Dilithium_PublicKeyDecode(const byte* input, word32* inOutIdx,
1229912299
#if !defined(WOLFSSL_DILITHIUM_NO_ASN1)
1230012300
int keyType = 0;
1230112301
#else
12302-
int length;
12303-
unsigned char* oid;
12304-
int oidLen;
12302+
int length = 0;
12303+
unsigned char* oid = NULL;
12304+
int oidLen = 0;
1230512305
word32 idx = 0;
1230612306
#endif
1230712307

0 commit comments

Comments
 (0)