return early from os_reportExit if report stack is not initialized
Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
		
							parent
							
								
									aa9947a320
								
							
						
					
					
						commit
						657325707c
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -426,6 +426,9 @@ void os_reportExit(void)
 | 
			
		|||
{
 | 
			
		||||
    char *name;
 | 
			
		||||
    os_reportStack reports;
 | 
			
		||||
    if (!inited) {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    reports = os_threadMemGet(OS_THREAD_REPORT_STACK);
 | 
			
		||||
    if (reports) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue