Skip to content

Commit eac2b9a

Browse files
alfred2gAlfred Gedeon
andauthored
Fix Linux port Valgrind errors (#56)
Fix Valgrind uninitialized variables warning. Co-authored-by: Alfred Gedeon <[email protected]>
1 parent 6e75230 commit eac2b9a

File tree

1 file changed

+4
-0
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+4
-0
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,14 @@ struct sigaction sigtick;
280280
* up running on the main thread when it is resumed. */
281281
itimer.it_value.tv_sec = 0;
282282
itimer.it_value.tv_usec = 0;
283+
284+
itimer.it_interval.tv_sec = 0;
285+
itimer.it_interval.tv_usec = 0;
283286
(void)setitimer( ITIMER_REAL, &itimer, NULL );
284287

285288
sigtick.sa_flags = 0;
286289
sigtick.sa_handler = SIG_IGN;
290+
sigemptyset( &sigtick.sa_mask );
287291
sigaction( SIGALRM, &sigtick, NULL );
288292

289293
/* Signal the scheduler to exit its loop. */

0 commit comments

Comments
 (0)