From 5825d1b2189883944143d6721bbe09643ebaeb1d Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 23 Jan 2017 23:56:08 +0100 Subject: Bump liberty --- plugins/lua-loader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/lua-loader.c b/plugins/lua-loader.c index 95550da..8fa1875 100644 --- a/plugins/lua-loader.c +++ b/plugins/lua-loader.c @@ -363,9 +363,8 @@ static luaL_Reg xlua_library[] = static bool load_one_plugin (lua_State *L, const char *name, const char *path) { - int ret; - if (!(ret = luaL_loadfile (L, path)) - && !(ret = lua_pcall (L, 0, 0, 0))) + if (!luaL_loadfile (L, path) + && !lua_pcall (L, 0, 0, 0)) return true; print_error ("Lua: could not load `%s': %s", name, lua_tostring (L, -1)); -- cgit v1.2.3-70-g09d2