X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8387304e3f32d745a7b4ed4ee1c350477d0d513a..b0aa8cdb1c264e42d4931ca24968689c73381278:/test/getcwidth.c diff --git a/test/getcwidth.c b/test/getcwidth.c index 2c4755b1..c1717e17 100644 --- a/test/getcwidth.c +++ b/test/getcwidth.c @@ -114,7 +114,7 @@ getwidth(const char *string) * at a time. */ - mbtowc(NULL, NULL, 0); + if (mbtowc(NULL, NULL, 0)) {} while (charleft > 0) { int clen;