From cc0b2428944a9a3df8489db6a7dea4528a1e2616 Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Tue, 21 Jun 2016 16:48:23 +0100 Subject: [PATCH] Fix build warning --- tests/suites/test_suite_ssl.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index bac2e5851..fcfaf454e 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -3,7 +3,6 @@ #include #if defined(MBEDTLS_X509_CRT_PARSE_C) -static int pre_vrfy_data = 0; static void pre_vrfy_fn( void *data, struct mbedtls_x509_crt *crt ) { if( crt && crt->version == 3 ) @@ -89,6 +88,7 @@ void ssl_preverifycb( char *crt_file ) mbedtls_ssl_context ssl; mbedtls_ssl_config conf; mbedtls_x509_crt crt; + int pre_vrfy_data = 0; mbedtls_ssl_init( &ssl ); mbedtls_ssl_config_init( &conf );