Browse code

app_ruby: init timeval structures

(cherry picked from commit 50f92131ac0a9f5dd1e19fb6e3636657ad996e37)
(cherry picked from commit 50e3e3761804dd71a615f95eeb67c2d6e1462829)

Daniel-Constantin Mierla authored on 07/04/2021 08:29:24 • Henning Westerholt committed on 22/10/2021 11:43:32
Showing 1 changed files
... ...
@@ -1413,7 +1413,7 @@ VALUE sr_kemi_ruby_exec_func(ksr_ruby_context_t *R, int eidx, int argc,
1413 1413
 {
1414 1414
 	sr_kemi_t *ket;
1415 1415
 	int ret;
1416
-	struct timeval tvb, tve;
1416
+	struct timeval tvb = {0}, tve = {0};
1417 1417
 	struct timezone tz;
1418 1418
 	unsigned int tdiff;
1419 1419