X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/2901c406fda763902b1e77263ec273187f7dc75b..944c4044572da20ed1fb9bc01085221856b53c1f:/wcwidth.c diff --git a/wcwidth.c b/wcwidth.c index 269359f..bc4ae7f 100644 --- a/wcwidth.c +++ b/wcwidth.c @@ -144,13 +144,12 @@ int ustrwid(wchar_t const *s, int charset) wid = 0; while (len > 0) { - int err, ret; + int err; wchar_t const *s_orig; err = 0; s_orig = s; - ret = charset_from_unicode(&s, &len, buf, lenof(buf), - charset, &state, &err); + charset_from_unicode(&s, &len, buf, lenof(buf), charset, &state, &err); wid += wcswidth(s_orig, s - s_orig); if (err) { assert(len > 0 && *s);