Skip to content

Commit

Permalink
Merge pull request #6995 from gojimmypi/PR-var-init
Browse files Browse the repository at this point in the history
Initialize variables to appease Espressif compiler
  • Loading branch information
JacobBarthelmeh authored Nov 22, 2023
2 parents 0306d07 + 6c41a6a commit 7036c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/ssl_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7036c84

Please sign in to comment.