Commit 34df2f19 authored by Rich Prohaska's avatar Rich Prohaska

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

git-svn-id: file:///svn/tokudb@4641 c7de825b-a66e-492c-adef-691d508d4ae1
parent 95cd588f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment