Skip to content

Commit e6c68b6

Browse files
committed
lightningd: add comment on why we have "useless" initialization.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 0fa209c commit e6c68b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightningd/peer_control.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ static struct command_result *json_close(struct command *cmd,
901901
{
902902
const jsmntok_t *idtok;
903903
struct peer *peer;
904+
/* FIXME: gcc 7.3.0 thinks this might not be initialized. */
904905
struct channel *channel = NULL;
905906
unsigned int *timeout;
906907
bool *force;

0 commit comments

Comments
 (0)