Commit 8c7516de authored by Rusty Russell's avatar Rusty Russell

tdb2: fix uninitialized var.

parent 18636637
......@@ -163,6 +163,8 @@ char *tdb_summary(struct tdb_context *tdb, enum tdb_summary_flags flags)
*bucketsg[BUCKETS_FOR_ZONE(63)+1] = { NULL };
char *ret = NULL;
zonesg = hashesg = freeg = keysg = datag = extrag = uncoalg = NULL;
if (tdb_allrecord_lock(tdb, F_RDLCK, TDB_LOCK_WAIT, false) != 0)
return NULL;
......@@ -222,9 +224,6 @@ char *tdb_summary(struct tdb_context *tdb, enum tdb_summary_flags flags)
HISTO_WIDTH,
HISTO_HEIGHT);
}
} else {
zonesg = hashesg = freeg = keysg = datag = extrag = uncoalg
= NULL;
}
/* 20 is max length of a %llu. */
......
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