mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
config file: fix line count in error message
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user