about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-07 15:58:44 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-07 15:58:44 +0000
commit98e306e251aca4937ca9947c33d686abbc638561 (patch)
tree77da85e8ecad83f8e5f401c14b007bef55e96764 /Src/Zle/complist.c
parentb85a444fe01e3953833e929361323fdd93dfcd48 (diff)
downloadzsh-98e306e251aca4937ca9947c33d686abbc638561.tar.gz
zsh-98e306e251aca4937ca9947c33d686abbc638561.tar.xz
zsh-98e306e251aca4937ca9947c33d686abbc638561.zip
unposted: badly positioned declaration in complist.c
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c4
1 files changed, 3 insertions, 1 deletions
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';