From 9f72f018e043d35fa33787391ab5d799e4aa8584 Mon Sep 17 00:00:00 2001 From: abrahamsonn Date: Mon, 13 Nov 2017 10:28:22 -0700 Subject: [PATCH] Moved variable declaration to beginning of block --- wolfcrypt/test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index a62cb5766..fa6bf0132 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -10991,6 +10991,9 @@ static int ecc_test_make_pub(WC_RNG* rng) #ifdef HAVE_ECC_VERIFY int verify = 0; #endif +#ifndef USE_CERT_BUFFERS_256 + FILE* file; +#endif tmp = (byte*)XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER); if (tmp == NULL) { @@ -11006,7 +11009,6 @@ static int ecc_test_make_pub(WC_RNG* rng) XMEMCPY(tmp, ecc_key_der_256, (size_t)sizeof_ecc_key_der_256); tmpSz = (size_t)sizeof_ecc_key_der_256; #else - FILE* file; file = fopen(eccKeyDerFile, "rb"); if (!file) { ERROR_OUT(-6812, done);