zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: dead code in update_bmatchers
@ 2008-09-04 21:17 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-09-04 21:17 UTC (permalink / raw)
  To: zsh-workers

q is never non-NULL, and wouldn't even be used if it were.

Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.56
diff -u -r1.56 compmatch.c
--- Src/Zle/compmatch.c	10 Jun 2008 19:12:57 -0000	1.56
+++ Src/Zle/compmatch.c	4 Sep 2008 21:16:12 -0000
@@ -120,7 +120,7 @@
 mod_export void
 update_bmatchers(void)
 {
-    Cmlist p = bmatchers, q = NULL, ms;
+    Cmlist p = bmatchers, ms;
     Cmatcher mp;
     int t;
 
@@ -132,10 +132,7 @@
 
 	p = p->next;
 	if (!t) {
-	    if (q)
-		q->next = p;
-	    else
-		bmatchers = p;
+	    bmatchers = p;
 	}
     }
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-05  0:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 21:17 PATCH: dead code in update_bmatchers Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).