mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -04:00
Fix: Valgrind uninitialized variables
This commit is contained in:
parent
6e7523041d
commit
346dd3b37d
1 changed files with 4 additions and 0 deletions
4
portable/ThirdParty/GCC/Posix/port.c
vendored
4
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -280,10 +280,14 @@ struct sigaction sigtick;
|
||||||
* up running on the main thread when it is resumed. */
|
* up running on the main thread when it is resumed. */
|
||||||
itimer.it_value.tv_sec = 0;
|
itimer.it_value.tv_sec = 0;
|
||||||
itimer.it_value.tv_usec = 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 );
|
(void)setitimer( ITIMER_REAL, &itimer, NULL );
|
||||||
|
|
||||||
sigtick.sa_flags = 0;
|
sigtick.sa_flags = 0;
|
||||||
sigtick.sa_handler = SIG_IGN;
|
sigtick.sa_handler = SIG_IGN;
|
||||||
|
sigemptyset( &sigtick.sa_mask );
|
||||||
sigaction( SIGALRM, &sigtick, NULL );
|
sigaction( SIGALRM, &sigtick, NULL );
|
||||||
|
|
||||||
/* Signal the scheduler to exit its loop. */
|
/* Signal the scheduler to exit its loop. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue