summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-02-06 10:12:20 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-02-06 10:12:20 +0000
commitbae2ec88e587efb6f0cc9ef8db5d3c8b6de78382 (patch)
treed945fed79a4633e29747dd67c90753e300ce544e
parent49437215b2c372899f457cb16101d138cbad0760 (diff)
downloadzsh-bae2ec88e587efb6f0cc9ef8db5d3c8b6de78382.tar.gz
zsh-bae2ec88e587efb6f0cc9ef8db5d3c8b6de78382.tar.xz
zsh-bae2ec88e587efb6f0cc9ef8db5d3c8b6de78382.zip
unposted: uninitialised variable could result from 23144
-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);