mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
lua: parse_json(): fix inverted condition for trail argument
It accidentally had the opposite meaning.
This commit is contained in:
parent
0cfada604d
commit
38546d5a99
@ -1314,7 +1314,7 @@ static int script_parse_json(lua_State *L)
|
||||
struct mpv_node node;
|
||||
if (json_parse(tmp, &node, &text, 32) >= 0) {
|
||||
json_skip_whitespace(&text);
|
||||
ok = !text[0] || !trail;
|
||||
ok = !text[0] || trail;
|
||||
}
|
||||
if (ok) {
|
||||
pushnode(L, &node);
|
||||
|
Loading…
Reference in New Issue
Block a user