--- embedaddon/lighttpd/src/mod_magnet_cache.c 2013/10/14 10:32:47 1.1.1.1 +++ embedaddon/lighttpd/src/mod_magnet_cache.c 2014/06/15 20:20:06 1.1.1.2 @@ -80,7 +80,7 @@ lua_State *script_cache_get_script(server *srv, connec break; } - assert(lua_isfunction(sc->L, -1)); + force_assert(lua_isfunction(sc->L, -1)); lua_pushvalue(sc->L, -1); /* copy the function-reference */ return sc->L; @@ -128,7 +128,7 @@ lua_State *script_cache_get_script(server *srv, connec * as pcall() will pop the script from the stack when done, we have to * duplicate it here */ - assert(lua_isfunction(sc->L, -1)); + force_assert(lua_isfunction(sc->L, -1)); lua_pushvalue(sc->L, -1); /* copy the function-reference */ return sc->L;