about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Zle/complist.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b5170d2a..5614e9774 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-08-07  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Src/Zle/complist.c: another bad declaration.
+
 	* 22589: Src/Zle/complist.c: bug in menu selection when displaying
 	long lines.
 
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 08cbb74af..df5d78d7e 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -1970,8 +1970,10 @@ msearch(Cmatch **ptr, int ins, int back, int rep, int *wrapp)
 	if (lastchar_wide_valid)
 	{
 	    mbstate_t mbs;
+	    int len;
+
 	    memset(&mbs, 0, sizeof(mbs));
-	    int len = wcrtomb(s, lastchar_wide, &mbs);
+	    len = wcrtomb(s, lastchar_wide, &mbs);
 	    if (len < 0)
 		len = 0;
 	    s[len] = '\0';