Browse code

app_jsdt: init timeval structures

(cherry picked from commit cad5cc37c63477fbcf429af34e516b523c74132e)
(cherry picked from commit 3aa2bfd98e6b647eda8f8a27f2da3f5b9f645feb)

Daniel-Constantin Mierla authored on 07/04/2021 08:29:24 • Henning Westerholt committed on 22/10/2021 11:43:06
Showing 1 changed files
... ...
@@ -1329,7 +1329,7 @@ int sr_kemi_jsdt_exec_func(duk_context *J, int eidx)
1329 1329
 {
1330 1330
 	sr_kemi_t *ket;
1331 1331
 	int ret;
1332
-	struct timeval tvb, tve;
1332
+	struct timeval tvb ={0}, tve = {0};
1333 1333
 	struct timezone tz;
1334 1334
 	unsigned int tdiff;
1335 1335
 	int sline = 0;