From 88461a5db66effe02ae2c1e616f62e56ae73d205 Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 24 Jun 2014 13:53:21 +1000 Subject: [PATCH] ckdb - initialise the merketree string (json array) --- src/ckdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ckdb.c b/src/ckdb.c index 6e9d13fb..ed38a2d1 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -4844,6 +4844,7 @@ static enum cmd_values breakdown(char *buf, int *which_cmds, char *cmd, char *id if (!(DATA_TRANSFER(item)->data)) quithere(1, "malloc data (%d) OOM", (int)len); off = 0; + DATA_TRANSFER(item)->data[0] = '\0'; for (i = 0; i < count; i++) { json_element = json_array_get(json_value, i); if (json_is_string(json_element)) {