Skip to content

Commit

Permalink
Fix Linux port Valgrind errors (#56)
Browse files Browse the repository at this point in the history
Fix Valgrind uninitialized variables warning.
Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
  • Loading branch information
alfred2g authored Apr 28, 2020
1 parent 6e75230 commit eac2b9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions portable/ThirdParty/GCC/Posix/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,14 @@ struct sigaction sigtick;
* up running on the main thread when it is resumed. */
itimer.it_value.tv_sec = 0;
itimer.it_value.tv_usec = 0;

itimer.it_interval.tv_sec = 0;
itimer.it_interval.tv_usec = 0;
(void)setitimer( ITIMER_REAL, &itimer, NULL );

sigtick.sa_flags = 0;
sigtick.sa_handler = SIG_IGN;
sigemptyset( &sigtick.sa_mask );
sigaction( SIGALRM, &sigtick, NULL );

/* Signal the scheduler to exit its loop. */
Expand Down

0 comments on commit eac2b9a

Please sign in to comment.