if ((sp = str)) {
#ifdef MULTIBYTE_SUPPORT
- mbtowc(NULL, NULL, 0); /* reset shift state */
+ if (mbtowc(NULL, NULL, 0)) {} /* reset shift state */
#endif
end = strlen(str);
while (*sp && remaining > 0 && end > 0) {
len = strlen(str);
#ifdef MULTIBYTE_SUPPORT
- mbtowc(NULL, NULL, 0); /* Reset shift state */
+ if (mbtowc(NULL, NULL, 0)) {} /* Reset shift state */
#endif /* MULTIBYTE_SUPPORT */
/*