From 122fc1f26fdf94b156bc37f547a583a77f936a27 Mon Sep 17 00:00:00 2001 From: gorazdko Date: Thu, 7 Nov 2019 22:31:42 +0100 Subject: [PATCH] config file: fix line count in error message --- lightningd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index 0ffc356d3..a962eaf40 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -747,7 +747,7 @@ static void opt_parse_from_config(struct lightningd *ld, bool early) 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 */ all_args = notleak(tal_arr(ld, char *, tal_count(lines) - 1));