Module: kamailio Branch: master Commit: cf1f8daebc83ce91c2a62fc11c23d78d5ca78796 URL: https://github.com/kamailio/kamailio/commit/cf1f8daebc83ce91c2a62fc11c23d78d5ca78796
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2015-04-27T18:02:31+02:00 app_lua: removed static initialization of arrays - not supported by all compilers - reported by Juha Heinanen --- Modified: modules/app_lua/app_lua_exp.c --- Diff: https://github.com/kamailio/kamailio/commit/cf1f8daebc83ce91c2a62fc11c23d78d5ca78796.diff Patch: https://github.com/kamailio/kamailio/commit/cf1f8daebc83ce91c2a62fc11c23d78d5ca78796.patch --- diff --git a/modules/app_lua/app_lua_exp.c b/modules/app_lua/app_lua_exp.c index 2e2c226..a328022 100644 --- a/modules/app_lua/app_lua_exp.c +++ b/modules/app_lua/app_lua_exp.c @@ -2664,7 +2664,7 @@ static const luaL_Reg _sr_mqueue_Map [] = { static int lua_sr_ndb_mongodb_cmd_x(lua_State *L, int ctype) { int ret = 0; - str param[6] = {0}; + str param[6]; if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_NDB_MONGODB)) { @@ -2738,7 +2738,7 @@ static int lua_sr_ndb_mongodb_find_one(lua_State *L) static int lua_sr_ndb_mongodb_next_reply(lua_State *L) { int ret = 0; - str param[1] = {0}; + str param[1]; if(!(_sr_lua_exp_reg_mods&SR_LUA_EXP_MOD_NDB_MONGODB)) { _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
