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