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 <rusty@rustcorp.com.au> Changelog-None: CI only
This commit is contained in:
committed by
madelinevibes
parent
afa7aead24
commit
1c537c258e
@@ -449,7 +449,7 @@ static void channel_hints_update(struct payment *p,
|
||||
"estimated capacity %s",
|
||||
fmt_short_channel_id_dir(tmpctx, &hint->scid),
|
||||
hint->enabled ? "true" : "false",
|
||||
fmt_amount_msat(tmpctx, hint->estimated_capacity));
|
||||
hint->enabled ? fmt_amount_msat(tmpctx, hint->estimated_capacity) : "UNKNOWN");
|
||||
channel_hint_notify(p->plugin, hint);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user