From 98e306e251aca4937ca9947c33d686abbc638561 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 7 Aug 2006 15:58:44 +0000 Subject: unposted: badly positioned declaration in complist.c --- Src/Zle/complist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src') 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'; -- cgit 1.4.1