From f5670082b6cf745a4cecd0a9ec0d3ab293210e55 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Thu, 8 Feb 2024 14:12:02 -0700 Subject: [PATCH] Windows doesn't like code before variables --- wolfcrypt/src/tfm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index 65d92ffa1..ae69f53c2 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -4589,10 +4589,11 @@ void fp_clear(fp_int *a) void fp_forcezero (mp_int * a) { + int size; + if (a == NULL) return; - int size; a->used = 0; a->sign = FP_ZPOS; #if defined(ALT_ECC_SIZE) || defined(HAVE_WOLF_BIGINT)