Skip to content

Commit e869002

Browse files
committed
chanbackup: remove unnecessary allocation.
after_listpeers() doesn't use the argument, so we don't need to allocate anything. Signed-off-by: Rusty Russell <[email protected]>
1 parent 9357954 commit e869002

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugins/chanbackup.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,11 @@ static struct command_result *after_staticbackup(struct command *cmd,
565565
plugin_log(cmd->plugin, LOG_DBG, "Updating the SCB");
566566

567567
update_scb(cmd->plugin, scb_chan);
568-
struct info *info = tal(cmd, struct info);
569-
info->idx = 0;
570568
req = jsonrpc_request_start(cmd,
571569
"listpeers",
572570
after_listpeers,
573571
plugin_broken_cb,
574-
info);
572+
NULL);
575573
return send_outreq(req);
576574
}
577575

0 commit comments

Comments
 (0)