mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Assert that thread_data != NULL
This commit is contained in:
parent
8110c05629
commit
9b7810acc2
1
portable/ThirdParty/GCC/Posix/port.c
vendored
1
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -142,6 +142,7 @@ static void prvMarkAsFreeRTOSThread( pthread_t thread )
|
|||
{
|
||||
prvInitThreadKey();
|
||||
uint8_t * thread_data = malloc( 1 );
|
||||
configASSERT( thread_data != NULL );
|
||||
*thread_data = 1;
|
||||
pthread_setspecific( xThreadKey, thread_data );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue