1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +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

@ -1,5 +1,7 @@
2015-01-06 Mikael Magnusson <mikachu@gmail.com>
* 34104: Src/Zle/compctl.c: Remove pointless check
* 34115: Src/Zle/compcore.c: Fix size argument to zfree
* 34117: Src/Zle/zle_utils.c: size_t is unsigned, use int instead

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)