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:
parent
9cb0a092c2
commit
61db4a1d71
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue