diff --git a/src/stratifier.c b/src/stratifier.c index 3f6a47c3..6afad0b2 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -516,7 +516,8 @@ static void update_base(ckpool_t *ckp) if (wb->transactions) { json_strdup(&wb->txn_data, val, "txn_data"); json_strdup(&wb->txn_hashes, val, "txn_hashes"); - } + } else + wb->txn_hashes = ckzalloc(1); json_intcpy(&wb->merkles, val, "merkles"); wb->merkle_array = json_array(); if (wb->merkles) {