Merge pull request #6995 from gojimmypi/PR-var-init

Initialize variables to appease Espressif compiler
This commit is contained in:
JacobBarthelmeh 2023-11-22 15:54:40 -07:00 committed by GitHub
commit 7036c8440b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30123,7 +30123,7 @@ static int set_curves_list(WOLFSSL* ssl, WOLFSSL_CTX *ctx, const char* names)
char name[MAX_CURVE_NAME_SZ];
byte groups_len = 0;
#ifdef WOLFSSL_SMALL_STACK
void *heap = ssl? ssl->heap : ctx ? ctx->heap : NULL;
void *heap = ssl? ssl->heap : ctx ? ctx->heap : NULL; (void)heap;
int *groups;
#else
int groups[WOLFSSL_MAX_GROUP_COUNT];

View File

@ -1972,7 +1972,7 @@ unsigned char* wolfSSL_HMAC(const WOLFSSL_EVP_MD* evp_md, const void* key,
unsigned char* ret = NULL;
int rc = 0;
int type = 0;
int hmacLen;
int hmacLen = 0;
#ifdef WOLFSSL_SMALL_STACK
Hmac* hmac = NULL;
#else