conf: fix skipping empty lines
This commit is contained in:
parent
587856eb89
commit
1383744603
@ -304,7 +304,7 @@ parse_file(struct xbps_handle *xhp, const char *path, bool nested)
|
|||||||
while (isblank((unsigned char)*line))
|
while (isblank((unsigned char)*line))
|
||||||
line++;
|
line++;
|
||||||
/* ignore comments or empty lines */
|
/* ignore comments or empty lines */
|
||||||
if (line[0] == '#' || line[0] == '\n')
|
if (line[0] == '#' || line[0] == '\0')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
switch (parse_option(line, rd, &val, &vallen)) {
|
switch (parse_option(line, rd, &val, &vallen)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user