init the val memory to fix a valgrind error. addresses #935

git-svn-id: file:///svn/tokudb@4641 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2008-06-18 23:53:05 +00:00
parent f714e3e873
commit 89307e2945

View file

@ -40,7 +40,7 @@ void testit(const int klen, const int vlen, const int n, const int lastvlen) {
// insert to fill up a node
{
void *v = malloc(vlen); assert(v);
void *v = malloc(vlen); assert(v); memset(v, 0, vlen);
DB_TXN *txn = 0;
int i;
for (i=0; i<n; i++) {
@ -61,7 +61,7 @@ void testit(const int klen, const int vlen, const int n, const int lastvlen) {
// add another one to force a node split
{
void *v = malloc(vlen); assert(v);
void *v = malloc(vlen); assert(v); memset(v, 0, vlen);
DB_TXN *txn = 0;
int k = htonl(n+1);
DBT key, val;