Skip to content

Commit cdbd195

Browse files
committed
Have ret initialized to 0 in wc_ecc_free() and wc_dilithium_free()
1 parent 2626f97 commit cdbd195

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/dilithium.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10873,7 +10873,7 @@ int wc_dilithium_get_level(dilithium_key* key, byte* level)
1087310873
void wc_dilithium_free(dilithium_key* key)
1087410874
{
1087510875
#if defined(WOLF_CRYPTO_CB) && defined(WOLF_CRYPTO_CB_FREE)
10876-
int ret;
10876+
int ret = 0;
1087710877
#endif
1087810878

1087910879
if (key != NULL) {

wolfcrypt/src/ecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7887,7 +7887,7 @@ WOLFSSL_ABI
78877887
int wc_ecc_free(ecc_key* key)
78887888
{
78897889
#if defined(WOLF_CRYPTO_CB) && defined(WOLF_CRYPTO_CB_FREE)
7890-
int ret;
7890+
int ret = 0;
78917891
#endif
78927892

78937893
if (key == NULL) {

0 commit comments

Comments
 (0)