aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/fileio.c
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
commit598b0256a354cb2e65ea240e50662d4378f5462c (patch)
treeeebc14a4f618ade0678107c40b16f6538d30aade /libpkgconf/fileio.c
parent8a5f879840bfe9933a6ff01792b42000de99f8c2 (diff)
Merge with latest original package version (master branch)
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 */