From 85ef91ce6dac7278e99959de12e1122e96b97844 Mon Sep 17 00:00:00 2001 From: Tesfa Mael Date: Mon, 25 Apr 2022 12:40:31 -0700 Subject: [PATCH] Move up local variable at the beginning --- wolfcrypt/test/test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index a7862340a..fe990efc6 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -15068,6 +15068,7 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void) RsaKey *key = (RsaKey *)XMALLOC(sizeof *key, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); #else RsaKey key[1]; + byte tmp[FOURK_BUF]; #endif #if defined(WOLFSSL_CERT_EXT) || defined(WOLFSSL_CERT_GEN) #ifdef WOLFSSL_SMALL_STACK @@ -15168,8 +15169,6 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void) tmp = (byte*)XMALLOC(bytes, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); if (tmp == NULL) ERROR_OUT(-7900, exit_rsa); -#else - byte tmp[FOURK_BUF]; #endif #ifdef USE_CERT_BUFFERS_1024