Fix Linux port Valgrind errors (#56)

Fix Valgrind uninitialized variables warning.
Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
alfred gedeon 2020-04-28 14:42:34 -07:00 committed by GitHub
parent 6e7523041d
commit eac2b9a271
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. */