commit 42af2216fe98aa317a8a32b0a486ed24832a8290
parent 356d2482c5af7d6508999e4fd6887ab9f808e618
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 13 Jun 2005 20:19:03 +0000
yet another cleanup
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2655 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);