mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
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:
parent
f714e3e873
commit
89307e2945
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue