mirror of
				https://github.com/libretro/Lakka-LibreELEC.git
				synced 2025-11-04 10:19:09 +00:00 
			
		
		
		
	* Initial fully buildable/bootable Odin Support * Rework NX-Boot to FAT32 Boot for shared usage between switch and odin * Move shared packages from switch/odin to main packages folder
		
			
				
	
	
		
			19 lines
		
	
	
		
			740 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			740 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
2010-02-27  Aurelien Jarno  <aurelien@aurel32.net>
 | 
						|
 | 
						|
	* pthreadP.h(INVALID_TD_P, INVALID_NOT_TERMINATED_TD_P): detect
 | 
						|
	NULL pointers.
 | 
						|
 | 
						|
--- a/nptl/pthreadP.h
 | 
						|
+++ b/nptl/pthreadP.h
 | 
						|
@@ -207,8 +207,8 @@ extern int __pthread_debug attribute_hidden;
 | 
						|
 /* Simplified test.  This will not catch all invalid descriptors but
 | 
						|
    is better than nothing.  And if the test triggers the thread
 | 
						|
    descriptor is guaranteed to be invalid.  */
 | 
						|
-# define INVALID_TD_P(pd) __builtin_expect ((pd)->tid <= 0, 0)
 | 
						|
-# define INVALID_NOT_TERMINATED_TD_P(pd) __builtin_expect ((pd)->tid < 0, 0)
 | 
						|
+# define INVALID_TD_P(pd) __builtin_expect (!pd || ((pd)->tid <= 0), 0)
 | 
						|
+# define INVALID_NOT_TERMINATED_TD_P(pd) __builtin_expect (!pd || ((pd)->tid < 0), 0)
 | 
						|
 #endif
 | 
						|
 
 | 
						|
 
 |