Browse Source

fix a warning while initializing a struct

pull/37/head
Max Lv 10 years ago
parent
commit
c8a05c87c6
1 changed files with 2 additions and 2 deletions
  1. 4
      src/encrypt.c

4
src/encrypt.c

@ -339,8 +339,8 @@ int rand_bytes(uint8_t *output, int len)
#if defined(USE_CRYPTO_OPENSSL) #if defined(USE_CRYPTO_OPENSSL)
return RAND_bytes(output, len); return RAND_bytes(output, len);
#elif defined(USE_CRYPTO_POLARSSL) #elif defined(USE_CRYPTO_POLARSSL)
static entropy_context ec = {0};
static ctr_drbg_context cd_ctx = {0};
static entropy_context ec = {};
static ctr_drbg_context cd_ctx = {};
static unsigned char rand_initialised = 0; static unsigned char rand_initialised = 0;
const size_t blen = min(len, CTR_DRBG_MAX_REQUEST); const size_t blen = min(len, CTR_DRBG_MAX_REQUEST);

Loading…
Cancel
Save