diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index daed24e9d..05d882457 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -7024,7 +7024,7 @@ int wc_EccKeyToDer(ecc_key* key, byte* output, word32 inLen) /* public */ XMEMCPY(output + idx, pub, pubidx); - idx += pubidx; + /* idx += pubidx; not used after write, if more data remove comment */ XFREE(pub, NULL, DYNAMIC_TYPE_TMP_BUFFER); return totalSz; diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index 383f7dab8..48421d0f4 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -4045,7 +4045,7 @@ static int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d) mp_int q; mp_word w; mp_digit t; - int res, ix; + int res = MP_OKAY, ix; /* cannot divide by zero */ if (b == 0) {