From 7dc83577c5bd282e48e88f4646692c67ea687350 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sat, 1 Mar 2008 19:35:16 +0000 Subject: [PATCH] Make valgrind happy by zeroing out partially initialized struct. --- test/stasis/check_linearHashNTA.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/stasis/check_linearHashNTA.c b/test/stasis/check_linearHashNTA.c index 046b4ae..dbda379 100644 --- a/test/stasis/check_linearHashNTA.c +++ b/test/stasis/check_linearHashNTA.c @@ -130,6 +130,7 @@ START_TEST(linearHashNTAVariableSizetest) int xid = Tbegin(); recordid val; + memset(&val,0,sizeof(val)); recordid hashHeader = ThashCreate(xid, VARIABLE_LENGTH, VARIABLE_LENGTH); recordid * val2; recordid ** bval2 = &val2;