From 38546d5a998e546b976fc5b8c0525cead670e9f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 26 Oct 2014 01:00:34 +0200 Subject: lua: parse_json(): fix inverted condition for trail argument It accidentally had the opposite meaning. --- player/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3