From 1383744603cce4ee679a9e7a176631f07dc27f63 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Fri, 10 Sep 2021 14:31:20 +0200 Subject: [PATCH] conf: fix skipping empty lines --- lib/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/conf.c b/lib/conf.c index f4bf1b14..fa591f16 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -304,7 +304,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested) while (isblank((unsigned char)*line)) line++; /* ignore comments or empty lines */ - if (line[0] == '#' || line[0] == '\n') + if (line[0] == '#' || line[0] == '\0') continue; switch (parse_option(line, rd, &val, &vallen)) {