Browse code

app_ruby: init timeval structures

(cherry picked from commit 50f92131ac0a9f5dd1e19fb6e3636657ad996e37)

Daniel-Constantin Mierla authored on 07/04/2021 08:29:24
Showing 1 changed files
... ...
@@ -1421,7 +1421,7 @@ VALUE sr_kemi_ruby_exec_func(ksr_ruby_context_t *R, int eidx, int argc,
1421 1421
 {
1422 1422
 	sr_kemi_t *ket;
1423 1423
 	int ret;
1424
-	struct timeval tvb, tve;
1424
+	struct timeval tvb = {0}, tve = {0};
1425 1425
 	struct timezone tz;
1426 1426
 	unsigned int tdiff;
1427 1427