From a032a9664836336e830e72492a409b227029b712 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Vavru=C5=A1a?= Date: Tue, 21 Jul 2015 14:41:57 +0200 Subject: [PATCH] daemon/engine: fixed Lua 5.2 compatibility --- daemon/engine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/engine.c b/daemon/engine.c index d9b078c70..5db9afa3a 100644 --- a/daemon/engine.c +++ b/daemon/engine.c @@ -358,7 +358,9 @@ static int engine_loadconf(struct engine *engine) } /* Use module path for including Lua scripts */ int ret = engine_cmd(engine, "package.path = package.path..';" PREFIX MODULEDIR "/?.lua'"); - lua_pop(engine->L, 1); + if (ret > 0) { + lua_pop(engine->L, 1); + } /* Load config file */ if(access("config", F_OK ) != -1 ) { -- 2.47.2