about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/complist.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e64c6813..45eb8f437 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-06  Peter Stephenson  <pws@csr.com>
+
+	* unposted: Src/Zle/complist.c: 23144 could leave an uninitialised
+	variable.
+
 2007-02-05  Clint Adams  <clint@zsh.org>
 
 	* 23151: Completion/Unix/Command/.distfiles,
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index e723da0f3..f06a5e8f4 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -3126,7 +3126,7 @@ domenuselect(Hookdef dummy, Chdata dat)
 
         } else if ((mode == MM_FSEARCH || mode == MM_BSEARCH) &&
                    cmd == Th(z_backwarddeletechar)) {
-            int back;
+            int back = 1;
             Cmatch **np = msearchpop(&back);
 
             mode = (back ? MM_BSEARCH : MM_FSEARCH);