X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8387304e3f32d745a7b4ed4ee1c350477d0d513a..b40ecb4417e49cbc53459b28ee394a3b2eb93c9c:/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;