From 42af2216fe98aa317a8a32b0a486ed24832a8290 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 13 Jun 2005 20:19:03 +0000 Subject: [PATCH] yet another cleanup git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2655 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/chars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chars.c b/src/chars.c index 341280c1..e5a82159 100644 --- a/src/chars.c +++ b/src/chars.c @@ -805,7 +805,7 @@ char *mbstrchr(const char *s, char *c) char *s_mb = charalloc(MB_CUR_MAX); const char *q = s; wchar_t ws, wc; - int s_mb_len, c_mb_len = mbtowc(&wc, c, MB_CUR_MAX); + int c_mb_len = mbtowc(&wc, c, MB_CUR_MAX); if (c_mb_len <= 0) { mbtowc(NULL, NULL, 0); @@ -813,7 +813,7 @@ char *mbstrchr(const char *s, char *c) } while (*s != '\0') { - s_mb_len = parse_mbchar(s, s_mb, NULL, NULL); + int s_mb_len = parse_mbchar(s, s_mb, NULL, NULL); if (mbtowc(&ws, s_mb, s_mb_len) <= 0) { mbtowc(NULL, NULL, 0); -- 2.39.5