Browse code

app_lua: init timeval structures

(cherry picked from commit e1369a4cf0c668a0ee40d3b84b9c6382c2168e49)
(cherry picked from commit c13836bd9feeb27878810cd469d839d2717c8425)

Daniel-Constantin Mierla authored on 07/04/2021 08:29:24 • Henning Westerholt committed on 22/10/2021 11:43:16
Showing 1 changed files
... ...
@@ -1518,7 +1518,7 @@ int sr_kemi_lua_exec_func(lua_State* L, int eidx)
1518 1518
 {
1519 1519
 	sr_kemi_t *ket;
1520 1520
 	int ret;
1521
-	struct timeval tvb, tve;
1521
+	struct timeval tvb = {0}, tve = {0};
1522 1522
 	struct timezone tz;
1523 1523
 	unsigned int tdiff;
1524 1524
 	lua_Debug dinfo;