Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 06/17: compctl: Remove pointless check
- X-seq: zsh-workers 34104
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH 06/17: compctl: Remove pointless check
- Date: Tue, 6 Jan 2015 06:25:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=Es7v9ZKxtB4kATEX0CCWLNgzjW3m4Q1+acJbrwvVD6U=; b=oshMhzRdMNlLocN7uy49FpdMLQHwNlCFd0iW7dIR8st1TxZ+YQY6T5eiFsGlQPild7 EZnAR9f6MQytTa65WBG7BNaRB0G7riDWlTRDnBrOgNUs+DcR/YacCw3PUN9DGcoQq8JV KFpBy+uqhGi2PPAUgvjGTF2povk3lNkad8ARNLI15nbFDKaZSZq6zXMeWHgwIzyrEX1G 4lAN8N2m0WHloEz4L7mhrzvEHtfm9SMYLt/KXNMKvzswkuN3sEPqWo0bZ6dcYjGa+9Ld 2w40jwjxyzbIn+cly5xvdd5ORa/r0s2pzTGrcr7M/AHQvwVJQO2Ts3NFgq12LSEj/sZ1 fzaw==
- In-reply-to: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1420521949-30483-1-git-send-email-mikachu@gmail.com>
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