Module: kamailio
Branch: master
Commit: cf1f8daebc83ce91c2a62fc11c23d78d5ca78796
URL:
https://github.com/kamailio/kamailio/commit/cf1f8daebc83ce91c2a62fc11c23d78…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
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/cf1f8daebc83ce91c2a62fc11c23d78…
Patch:
https://github.com/kamailio/kamailio/commit/cf1f8daebc83ce91c2a62fc11c23d78…
---
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))
{