Skip to content
Snippets Groups Projects
Commit 1e9dbf23 authored by Marek Vavruša's avatar Marek Vavruša Committed by Grigorii Demidov
Browse files

daemon/engine: fixed Lua 5.2 compatibility

parent 4dbcd545
Branches
Tags
No related merge requests found
......@@ -394,7 +394,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 ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment