Skip to content

Commit 1c537c2

Browse files
rustyrussellmadelinevibes
authored andcommitted
pay: fix uninitialized var in debug output.
@nepet noted that Valgrind complained. Nobody really cares though? TL;DR: if channel isn't enabled, estimate isn't set. Signed-off-by: Rusty Russell <[email protected]> Changelog-None: CI only
1 parent afa7aea commit 1c537c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/libplugin-pay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static void channel_hints_update(struct payment *p,
449449
"estimated capacity %s",
450450
fmt_short_channel_id_dir(tmpctx, &hint->scid),
451451
hint->enabled ? "true" : "false",
452-
fmt_amount_msat(tmpctx, hint->estimated_capacity));
452+
hint->enabled ? fmt_amount_msat(tmpctx, hint->estimated_capacity) : "UNKNOWN");
453453
channel_hint_notify(p->plugin, hint);
454454
}
455455
}

0 commit comments

Comments
 (0)