Skip to content

Commit 41e21d6

Browse files
committed
fixup!
uninitialized variables: thanks valgrind! These need to be rebased, but keeping separate for review.
1 parent 71babfc commit 41e21d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugins/bkpr/bookkeeper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ parse_and_log_chain_move(struct command *cmd,
10901090
enum mvt_tag tag, *tags;
10911091

10921092
/* Fields we expect on *every* chain movement */
1093+
closed_count = 0;
10931094
err = json_scan(tmpctx, buf, chainmove,
10941095
"{account_id:%"
10951096
",created_index:%"

plugins/bkpr/channel_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct channel_event *new_channel_event(const tal_t *ctx,
2424
ev->credit = credit;
2525
ev->debit = debit;
2626
ev->fees = fees;
27-
ev->payment_id = tal_dup(ev, struct sha256, payment_id);
27+
ev->payment_id = tal_dup_or_null(ev, struct sha256, payment_id);
2828
ev->part_id = part_id;
2929
ev->timestamp = timestamp;
3030

0 commit comments

Comments
 (0)