From 6c41a6a374b78033b0fb2f952bad7072ae25bc46 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Wed, 22 Nov 2023 13:02:51 -0800 Subject: [PATCH] Initialize variables to appease Espressif compiler --- src/ssl.c | 2 +- src/ssl_crypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 49547acf5e..1cf7681f47 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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]; diff --git a/src/ssl_crypto.c b/src/ssl_crypto.c index 063d1eafc2..024ec90b80 100644 --- a/src/ssl_crypto.c +++ b/src/ssl_crypto.c @@ -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