app_python: init timeval structures
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 7 Apr 2021 08:29:24 +0000 (10:29 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 13 Apr 2021 06:28:14 +0000 (08:28 +0200)
(cherry picked from commit 97991c9cf56ca034df914ae499053e597582ef80)

src/modules/app_python/apy_kemi.c

index 43a47d2..5869264 100644 (file)
@@ -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;