conf: fix skipping empty lines

This commit is contained in:
Duncan Overbruck 2021-09-10 14:31:20 +02:00
parent 587856eb89
commit 1383744603
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

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