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
1 changed files with 1 additions and 1 deletions

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