[sr-dev] git:master:97991c9c: app_python: init timeval structures

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 7 10:30:17 CEST 2021


Module: kamailio
Branch: master
Commit: 97991c9cf56ca034df914ae499053e597582ef80
URL: https://github.com/kamailio/kamailio/commit/97991c9cf56ca034df914ae499053e597582ef80

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-04-07T10:29:24+02:00

app_python: init timeval structures

---

Modified: src/modules/app_python/apy_kemi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/97991c9cf56ca034df914ae499053e597582ef80.diff
Patch: https://github.com/kamailio/kamailio/commit/97991c9cf56ca034df914ae499053e597582ef80.patch

---

diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index 43a47d28ad..586926428a 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -1783,7 +1783,7 @@ PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx)
 	PyObject *ret = NULL;
 	PyThreadState *pstate = NULL;
 	PyFrameObject *pframe = NULL;
-	struct timeval tvb, tve;
+	struct timeval tvb = {0}, tve = {0};
 	struct timezone tz;
 	unsigned int tdiff;
 




More information about the sr-dev mailing list