1
0
Fork 0
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:
Mikael Magnusson 2015-01-05 14:02:59 +01:00
parent 221ecf5010
commit ea6bb993e9
2 changed files with 3 additions and 1 deletions

View file

@ -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)