cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::root
Fix all callers.
This commit is contained in:
		
				
					committed by
					
						 Corinna Vinschen
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						parent
						
							504959d8fc
						
					
				
				
					commit
					be436ad2a3
				
			| @@ -478,7 +478,7 @@ format_process_root (void *data, char *&destbuf) | ||||
|       cfree (destbuf); | ||||
|       destbuf = NULL; | ||||
|     } | ||||
|   destbuf = p->root (fs); | ||||
|   destbuf = p ? p->root (fs) : NULL; | ||||
|   if (!destbuf || !*destbuf) | ||||
|     { | ||||
|       destbuf = cstrdup ("<defunct>"); | ||||
|   | ||||
| @@ -884,7 +884,7 @@ char * | ||||
| _pinfo::root (size_t& n) | ||||
| { | ||||
|   char *s; | ||||
|   if (!this || !pid) | ||||
|   if (!pid) | ||||
|     return NULL; | ||||
|   if (pid != myself->pid && !ISSTATE (this, PID_NOTCYGWIN)) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user