summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-26 01:00:34 +0200
committerwm4 <wm4@nowhere>2014-10-26 01:40:36 +0200
commit38546d5a998e546b976fc5b8c0525cead670e9f3 (patch)
tree109ee01c532cfa4f478a57c52b58168104543aab
parent0cfada604d9c87c43c12d461ae3e4daebf05771d (diff)
downloadmpv-38546d5a998e546b976fc5b8c0525cead670e9f3.tar.bz2
mpv-38546d5a998e546b976fc5b8c0525cead670e9f3.tar.xz
lua: parse_json(): fix inverted condition for trail argument
It accidentally had the opposite meaning.
-rw-r--r--player/lua.c2
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);