diff options
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index 66240f9975..260877732e 100644 --- a/player/lua.c +++ b/player/lua.c @@ -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); |