Skip to content

Commit a6e57cc

Browse files
committed
lightningd: initialize error pointer in connect_activate_subd and handle_splice_abort
Fixes #9442 Changelog-None
1 parent c1551c5 commit a6e57cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎lightningd/channel_control.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static void handle_splice_abort(struct lightningd *ld,
331331
struct bitcoin_outpoint *outpoint;
332332
struct channel_inflight *inflight;
333333
char *reason;
334-
const u8 *error;
334+
const u8 *error = NULL;
335335
struct peer_fd *pfd;
336336
int other_fd;
337337

‎lightningd/peer_control.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ static bool ignore_idle_channel(const struct lightningd *ld,
13951395
/* Talk to connectd about an active channel */
13961396
static void connect_activate_subd(struct lightningd *ld, struct channel *channel)
13971397
{
1398-
const u8 *error;
1398+
const u8 *error = NULL;
13991399
struct peer_fd *pfd;
14001400
int other_fd;
14011401

0 commit comments

Comments
 (0)