summaryrefslogtreecommitdiff
path: root/unit-tests/mm/pool_valgrind_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/mm/pool_valgrind_t.c')
-rw-r--r--unit-tests/mm/pool_valgrind_t.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/unit-tests/mm/pool_valgrind_t.c b/unit-tests/mm/pool_valgrind_t.c
index b430a9c..704f116 100644
--- a/unit-tests/mm/pool_valgrind_t.c
+++ b/unit-tests/mm/pool_valgrind_t.c
@@ -158,11 +158,9 @@ static void check_object_growth()
{
int i;
struct dm_pool *p = dm_pool_create("", 32);
- char data[100];
+ char data[100] = { 0 };
void *obj;
- memset(data, 0, sizeof(data));
-
dm_pool_begin_object(p, 43);
for (i = 1; i < 100; i++)
dm_pool_grow_object(p, data, i);