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