mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-05 11:51:52 +00:00
FS-4015 --resolve
This commit is contained in:
@@ -80,7 +80,7 @@ static int traceback(lua_State * L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int docall(lua_State * L, int narg, int clear, int perror)
|
||||
int docall(lua_State * L, int narg, int nresults, int perror)
|
||||
{
|
||||
int status;
|
||||
int base = lua_gettop(L) - narg; /* function index */
|
||||
@@ -88,7 +88,7 @@ int docall(lua_State * L, int narg, int clear, int perror)
|
||||
lua_pushcfunction(L, traceback); /* push traceback function */
|
||||
lua_insert(L, base); /* put it under chunk and args */
|
||||
|
||||
status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base);
|
||||
status = lua_pcall(L, narg, nresults, base);
|
||||
|
||||
lua_remove(L, base); /* remove traceback function */
|
||||
/* force a complete garbage collection in case of errors */
|
||||
|
||||
Reference in New Issue
Block a user