Skip to content

Commit

Permalink
Initialize variables to appease Espressif compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Nov 22, 2023
1 parent 0306d07 commit 6c41a6a
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 6c41a6a

Please sign in to comment.