mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
[FIX] add NULL pointer check to xTaskIncrementTick()
This commit is contained in:
parent
1a1ae36f9a
commit
54325540ea
5
tasks.c
5
tasks.c
|
@ -4766,6 +4766,11 @@ BaseType_t xTaskIncrementTick( void )
|
|||
{
|
||||
for( ; ; )
|
||||
{
|
||||
/* if the system tick interrupt is started independent from the
|
||||
* scheduler the first tick increment might occur before the
|
||||
* the first task is created and therefore pxDelayedTaskList is
|
||||
* still not set */
|
||||
configASSERT( pxDelayedTaskList != NULL );
|
||||
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
|
||||
{
|
||||
/* The delayed list is empty. Set xNextTaskUnblockTime
|
||||
|
|
Loading…
Reference in a new issue