about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/compmatch.c7
2 files changed, 4 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 071139f7f..7e77e3231 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-09-04  Clint Adams  <clint@zsh.org>
 
+	* 25612: Src/Zle/compmatch.c: remove dead code.
+
 	* 25610: Src/hist.c: remove dead code.
 
 	* 25609: Src/Modules/zftp.c: initialize sz variable.
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index dfb812760..9bef1cfeb 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -120,7 +120,7 @@ add_bmatchers(Cmatcher m)
 mod_export void
 update_bmatchers(void)
 {
-    Cmlist p = bmatchers, q = NULL, ms;
+    Cmlist p = bmatchers, ms;
     Cmatcher mp;
     int t;
 
@@ -132,10 +132,7 @@ update_bmatchers(void)
 
 	p = p->next;
 	if (!t) {
-	    if (q)
-		q->next = p;
-	    else
-		bmatchers = p;
+	    bmatchers = p;
 	}
     }
 }