enable the use of either single or double quotes

for file path names (was mixed up, becaus isquote()
aknowledges both types).
This commit is contained in:
Vogt 2020-11-11 20:36:20 +01:00 committed by Holger Vogt
parent 03cd512e7f
commit bb8cdb2e2d
1 changed files with 3 additions and 2 deletions

View File

@ -6107,10 +6107,11 @@ static char *get_quoted_token(char *string, char **token)
return string;
if (isquote(*s)) {
/* we may find single ' or double " quotes */
char thisquote = *s;
char *t = ++s;
while (*t && !isquote(*t))
while (*t && !(*t == thisquote))
t++;
if (!*t) { /* teriminator quote not found */