mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FS-11345: Fixed Werror=stringop-truncation for mod_opus
Fixed Werror=format-truncation on sofia-sip/libsofia-sip-ua/tport Fixed Werror=format-truncation on mod/endpoints/mod_verto Fixed unused-but-set-variable in mod_lua Fixed Werror=format-truncation on libs/sofia-sip/libsofia-sip-ua/tport Fixed Wunused-variable Wmaybe-uninitialized on mod_soundtouch Fixed Wliteral-suffix for libs/unimrcp
This commit is contained in:
@@ -118,7 +118,6 @@ int docall(lua_State * L, int narg, int nresults, int perror, int fatal)
|
||||
static lua_State *lua_init(void)
|
||||
{
|
||||
lua_State *L = luaL_newstate();
|
||||
int error = 0;
|
||||
|
||||
if (L) {
|
||||
const char *buff = "os.exit = function() freeswitch.consoleLog(\"err\", \"Surely you jest! exiting is a bad plan....\\n\") end";
|
||||
@@ -127,7 +126,7 @@ static lua_State *lua_init(void)
|
||||
luaopen_freeswitch(L);
|
||||
lua_gc(L, LUA_GCRESTART, 0);
|
||||
lua_atpanic(L, panic);
|
||||
error = luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 0, 0, 1);
|
||||
luaL_loadbuffer(L, buff, strlen(buff), "line") || docall(L, 0, 0, 0, 1);
|
||||
}
|
||||
return L;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user