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)) {