mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	34104: compctl: Remove pointless check
cc has already been derefed a bunch of times leading up to here. Found by Coverity (Issue 1255841).
This commit is contained in:
		
							parent
							
								
									221ecf5010
								
							
						
					
					
						commit
						ea6bb993e9
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1515,7 +1515,7 @@ printcompctl(char *s, Compctl cc, int printflags, int ispat) | |||
| 	if (cclist & COMP_LIST) | ||||
| 	    printf(" --"); | ||||
|     } | ||||
|     if (cc && cc->xor) { | ||||
|     if (cc->xor) { | ||||
| 	/* print xor'd (+) completions */ | ||||
| 	printf(" +"); | ||||
| 	if (cc->xor != &cc_default) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue