aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:56:08 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2017-01-23 23:56:08 +0100
commit5825d1b2189883944143d6721bbe09643ebaeb1d (patch)
treef509de00234b602b786b203251a82a3689d35182 /plugins
parent5570898aca147e0e7bde470d72965d8ea8b62eee (diff)
downloadponymap-5825d1b2189883944143d6721bbe09643ebaeb1d.tar.gz
ponymap-5825d1b2189883944143d6721bbe09643ebaeb1d.tar.xz
ponymap-5825d1b2189883944143d6721bbe09643ebaeb1d.zip
Bump liberty
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lua-loader.c5
1 files changed, 2 insertions, 3 deletions
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));