about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-01-05 14:02:59 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-01-06 23:46:31 +0100
commitea6bb993e980171454708dd89847553a30d17dd9 (patch)
tree72511755ae4d9c3f1d391957bb0c072414be4637 /Src/Zle
parent221ecf5010b46afc93a2eec3c132fb8656716247 (diff)
downloadzsh-ea6bb993e980171454708dd89847553a30d17dd9.tar.gz
zsh-ea6bb993e980171454708dd89847553a30d17dd9.tar.xz
zsh-ea6bb993e980171454708dd89847553a30d17dd9.zip
34104: compctl: Remove pointless check
cc has already been derefed a bunch of times leading up to here. Found
by Coverity (Issue 1255841).
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index d15c2d1b0..96ad6a280 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)