[sr-dev] git:master:7457b3ce: app_python3: init timeval structures
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 7 10:30:18 CEST 2021
Module: kamailio
Branch: master
Commit: 7457b3cefd08595c054291398de0f9a4e62691b7
URL: https://github.com/kamailio/kamailio/commit/7457b3cefd08595c054291398de0f9a4e62691b7
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_python3: init timeval structures
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff: https://github.com/kamailio/kamailio/commit/7457b3cefd08595c054291398de0f9a4e62691b7.diff
Patch: https://github.com/kamailio/kamailio/commit/7457b3cefd08595c054291398de0f9a4e62691b7.patch
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index 7af949de6e..f3463a781f 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -1791,7 +1791,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