libpkgconf: fileio: fix quoting logic for double backslash case (ref #140)
parent
db56c80d92
commit
abe0f5c821
|
@ -29,7 +29,7 @@ pkgconf_fgetline(char *line, size_t size, FILE *stream)
|
||||||
|
|
||||||
while (s < end && (c = getc(stream)) != EOF)
|
while (s < end && (c = getc(stream)) != EOF)
|
||||||
{
|
{
|
||||||
if (c == '\\')
|
if (c == '\\' && !quoted)
|
||||||
{
|
{
|
||||||
quoted = true;
|
quoted = true;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue