From ea6bb993e980171454708dd89847553a30d17dd9 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 5 Jan 2015 14:02:59 +0100 Subject: 34104: 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(-) (limited to 'Src/Zle') 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) -- cgit 1.4.1