From 86b5b84efe4889a7a9742717c0d7be67db2d3313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Tim=C3=B3n?= Date: Sat, 22 Jun 2019 03:10:39 +0200 Subject: [PATCH] bugfix: Proper json for listtransactions' response [ Fixup for uninitialized var -- RR ] --- wallet/walletrpc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index b1dac9786..a7a29d293 100644 --- a/wallet/walletrpc.c +++ b/wallet/walletrpc.c @@ -790,10 +790,9 @@ static struct command_result *json_listtransactions(struct command *cmd, if (!param(cmd, buffer, params, NULL)) return command_param_failed(); - response = json_stream_success(cmd); - txs = wallet_transactions_get(cmd->ld->wallet, response); + txs = wallet_transactions_get(cmd->ld->wallet, cmd); - json_object_start(response, NULL); + response = json_stream_success(cmd); json_array_start(response, "transactions"); for (size_t i=0; i