Browse code

app_python: init timeval structures

(cherry picked from commit 97991c9cf56ca034df914ae499053e597582ef80)
(cherry picked from commit fa571b6f79f9a2a9c06ccb3494ed2ad0e14b529d)

Daniel-Constantin Mierla authored on 07/04/2021 08:29:24 • Henning Westerholt committed on 22/10/2021 11:43:21
Showing 1 changed files
... ...
@@ -1775,7 +1775,7 @@ PyObject *sr_apy_kemi_exec_func(PyObject *self, PyObject *args, int idx)
1775 1775
 	PyObject *ret = NULL;
1776 1776
 	PyThreadState *pstate = NULL;
1777 1777
 	PyFrameObject *pframe = NULL;
1778
-	struct timeval tvb, tve;
1778
+	struct timeval tvb = {0}, tve = {0};
1779 1779
 	struct timezone tz;
1780 1780
 	unsigned int tdiff;
1781 1781