Module: kamailio
Branch: master
Commit: 50f92131ac0a9f5dd1e19fb6e3636657ad996e37
URL:
https://github.com/kamailio/kamailio/commit/50f92131ac0a9f5dd1e19fb6e363665…
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_ruby: init timeval structures
---
Modified: src/modules/app_ruby/app_ruby_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/50f92131ac0a9f5dd1e19fb6e363665…
Patch:
https://github.com/kamailio/kamailio/commit/50f92131ac0a9f5dd1e19fb6e363665…
---
diff --git a/src/modules/app_ruby/app_ruby_api.c b/src/modules/app_ruby/app_ruby_api.c
index 41e6a3ec9e..116c4358ea 100644
--- a/src/modules/app_ruby/app_ruby_api.c
+++ b/src/modules/app_ruby/app_ruby_api.c
@@ -1421,7 +1421,7 @@ VALUE sr_kemi_ruby_exec_func(ksr_ruby_context_t *R, int eidx, int
argc,
{
sr_kemi_t *ket;
int ret;
- struct timeval tvb, tve;
+ struct timeval tvb = {0}, tve = {0};
struct timezone tz;
unsigned int tdiff;