Module: kamailio
Branch: master
Commit: e1369a4cf0c668a0ee40d3b84b9c6382c2168e49
URL:
https://github.com/kamailio/kamailio/commit/e1369a4cf0c668a0ee40d3b84b9c638…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-07T10:29:24+02:00
app_lua: init timeval structures
---
Modified: src/modules/app_lua/app_lua_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e1369a4cf0c668a0ee40d3b84b9c638…
Patch:
https://github.com/kamailio/kamailio/commit/e1369a4cf0c668a0ee40d3b84b9c638…
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index 3fa131ca3a..f736bea98b 100644
--- a/src/modules/app_lua/app_lua_api.c
+++ b/src/modules/app_lua/app_lua_api.c
@@ -1605,7 +1605,7 @@ int sr_kemi_lua_exec_func(lua_State* L, int eidx)
{
sr_kemi_t *ket;
int ret;
- struct timeval tvb, tve;
+ struct timeval tvb = {0}, tve = {0};
struct timezone tz;
unsigned int tdiff;
lua_Debug dinfo;