Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH 06/17: compctl: Remove pointless check



cc has already been derefed a bunch of times leading up to here. Found
by Coverity (Issue 1255841).
---
 Src/Zle/compctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index d15c2d1..96ad6a2 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -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)
-- 
2.2.0.GIT



Messages sorted by: Reverse Date, Date, Thread, Author