summaryrefslogtreecommitdiffstats
path: root/test/drbgtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/drbgtest.c')
-rw-r--r--test/drbgtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/drbgtest.c b/test/drbgtest.c
index 7d33c3035d..25920d6e40 100644
--- a/test/drbgtest.c
+++ b/test/drbgtest.c
@@ -481,7 +481,7 @@ static int test_rand_add(void)
{
char *p;
- if (!TEST_ptr(p = malloc(RAND_ADD_SIZE)))
+ if (!TEST_ptr(p = calloc(RAND_ADD_SIZE, 1)))
return 0;
RAND_add(p, RAND_ADD_SIZE, RAND_ADD_SIZE);
free(p);