aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpkgconf/fileio.c')
-rw-r--r--libpkgconf/fileio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpkgconf/fileio.c b/libpkgconf/fileio.c
index 7411dc3..b64205d 100644
--- a/libpkgconf/fileio.c
+++ b/libpkgconf/fileio.c
@@ -29,16 +29,12 @@ pkgconf_fgetline(char *line, size_t size, FILE *stream)
while (s < end && (c = getc(stream)) != EOF)
{
- /*
- * Fix double-backslash swallowing (issue #140 is reported).
- */
if (c == '\\' && !quoted)
{
quoted = true;
continue;
}
-
- if (c == '#')
+ else if (c == '#')
{
if (!quoted) {
/* Skip the rest of the line */