fixed endless loop when parsing backslash inside bad configuration file

This commit is contained in:
Jaroslav Kysela 2004-09-08 16:43:17 +00:00
parent 14b41cf29b
commit abd7316ac8

View file

@ -813,6 +813,7 @@ static int get_string(char **string, int id, input_t *input)
case '}': case '}':
case '[': case '[':
case ']': case ']':
case '\\':
return LOCAL_UNEXPECTED_CHAR; return LOCAL_UNEXPECTED_CHAR;
case '\'': case '\'':
case '"': case '"':