Skip to content

Commit

Permalink
fixup! libplugin: Remove presplitter from the API
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jul 14, 2023
1 parent 58b3b31 commit 05060fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/libplugin-pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2911,7 +2911,10 @@ static struct routehints_data *routehint_data_init(struct payment *p)
* payments to have fairly diverse initial
* routehints.
*/
d->base = (p->partid - 1) % num_routehints;
if (num_routehints == 0)
d->base = 0;
else
d->base = (p->partid - 1) % num_routehints;
}
return d;
} else {
Expand Down

0 comments on commit 05060fa

Please sign in to comment.