From 2d5dfe7d70004eefe6965b0b169c4ed912a34d74 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 14 Aug 2012 11:06:04 +0200 Subject: [PATCH] do not keep the quote information when set once --- fileio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fileio.c b/fileio.c index 3b8bf3e..2c6b9e9 100644 --- a/fileio.c +++ b/fileio.c @@ -74,8 +74,10 @@ pkg_fgetline(char *line, size_t size, FILE *stream) } else { - if (quoted) + if (quoted) { *s++ = '\\'; + quoted = false; + } *s++ = c; }