Fix build error on IAR

IAR fails to build when a variable is initialized with empty curly braces.
Added `{ { 0 } }` to fix that.
pull/7099/head
Ron Eldor 2018-09-02 10:48:31 +03:00
parent c1b6fdc5af
commit a2531b5674
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
#include "mbedtls/platform.h"
extern mbedtls_platform_context ctx;
static CRYS_RND_WorkBuff_t rndWorkBuff;
static CRYS_RND_WorkBuff_t rndWorkBuff = { { 0 } };
/* Implementation that should never be optimized out by the compiler */
static void mbedtls_zeroize( void *v, size_t n ) {

View File

@ -22,7 +22,7 @@
#if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
#include "mbed_critical.h"
mbedtls_platform_context ctx = { };
mbedtls_platform_context ctx = { { 0 } };
int mbedtls_platform_setup( mbedtls_platform_context *unused_ctx )
{