1
0
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:
wm4 2014-10-26 01:00:34 +02:00
parent 0cfada604d
commit 38546d5a99

View File

@ -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);