1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 02:01:55 +00:00

shl: fix shl_qstr_tokenize() quote parser

The parser is simply broken, fix it.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-03-29 12:51:40 +01:00
parent 9cb0a092c2
commit 61db4a1d71

View file

@ -617,9 +617,9 @@ int shl_qstr_tokenize_n(const char *str, size_t length, char ***out)
quoted = 0;
else if (str[i] == '\'' && quoted == '\'')
quoted = 0;
} else if (str[i] == '"' && quoted == '"') {
} else if (str[i] == '"') {
quoted = '"';
} else if (str[i] == '\'' && quoted == '\'') {
} else if (str[i] == '\'') {
quoted = '\'';
} else if (str[i] == ' ') {
/* ignore multiple separators */