]> diplodocus.org Git - nmh/blobdiff - test/getcwidth.c
Save this for now.
[nmh] / test / getcwidth.c
index 2c4755b..c1717e1 100644 (file)
@@ -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;