Skip to content

Commit 711a161

Browse files
committed
Fix broken change from b3d113e.
Reviewed-by: Tim Hudson <[email protected]> (Merged from #8606)
1 parent 0b885f7 commit 711a161

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crypto/rand/rand_lib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ size_t rand_drbg_get_nonce(RAND_DRBG *drbg,
235235
struct {
236236
void * instance;
237237
int count;
238-
} data = { NULL, 0 };
238+
} data;
239239

240+
memset(&data, 0, sizeof(data));
240241
pool = rand_pool_new(0, min_len, max_len);
241242
if (pool == NULL)
242243
return 0;

0 commit comments

Comments
 (0)