mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
config file: fix line count in error message
This commit is contained in:
parent
a70f2dc650
commit
122fc1f26f
1 changed files with 1 additions and 1 deletions
|
@ -747,7 +747,7 @@ static void opt_parse_from_config(struct lightningd *ld, bool early)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lines = tal_strsplit(contents, contents, "\r\n", STR_NO_EMPTY);
|
lines = tal_strsplit(contents, contents, "\r\n", STR_EMPTY_OK);
|
||||||
|
|
||||||
/* We have to keep all_args around, since opt will point into it */
|
/* We have to keep all_args around, since opt will point into it */
|
||||||
all_args = notleak(tal_arr(ld, char *, tal_count(lines) - 1));
|
all_args = notleak(tal_arr(ld, char *, tal_count(lines) - 1));
|
||||||
|
|
Loading…
Add table
Reference in a new issue