diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 3b4292dc6..bdf27ff27 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -901,7 +901,7 @@ static struct command_result *json_close(struct command *cmd, { const jsmntok_t *idtok; struct peer *peer; - struct channel *channel; + struct channel *channel = NULL; unsigned int *timeout; bool *force;