mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Assert that thread_data != NULL
This commit is contained in:
		
							parent
							
								
									8110c05629
								
							
						
					
					
						commit
						9b7810acc2
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		
							
								
								
									
										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();
 | 
					    prvInitThreadKey();
 | 
				
			||||||
    uint8_t * thread_data = malloc( 1 );
 | 
					    uint8_t * thread_data = malloc( 1 );
 | 
				
			||||||
 | 
					    configASSERT( thread_data != NULL );
 | 
				
			||||||
    *thread_data = 1;
 | 
					    *thread_data = 1;
 | 
				
			||||||
    pthread_setspecific( xThreadKey, thread_data );
 | 
					    pthread_setspecific( xThreadKey, thread_data );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue