Commit 12bf0be8 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Uninitialized variable

git-svn-id: file:///svn/toku/tokudb@16235 c7de825b-a66e-492c-adef-691d508d4ae1
parent 35e48627
...@@ -88,7 +88,7 @@ static void scan(DB *db, DB_TXN *txn, ...@@ -88,7 +88,7 @@ static void scan(DB *db, DB_TXN *txn,
memset(&val, 0, sizeof(val)); memset(&val, 0, sizeof(val));
key.flags = DB_DBT_MALLOC; key.flags = DB_DBT_MALLOC;
val.flags = DB_DBT_MALLOC; val.flags = DB_DBT_MALLOC;
int n; int n=0;
while (0==(r = cursor->c_get(cursor, &key, &val, DB_NEXT))) { while (0==(r = cursor->c_get(cursor, &key, &val, DB_NEXT))) {
reduce(&key, &val, extra); reduce(&key, &val, extra);
n++; n++;
......
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