X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e537b780f7aea8df01ddca1976f8c128d9c1fb55..215f8df2be496a67942590ab2aefdad5b182fe25:/sbr/fmt_scan.c diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 47a5fe87..cc5c192d 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -144,7 +144,7 @@ cptrimmed(charstring_t dest, char *str, int wid, char fill, size_t max) { 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) { @@ -252,7 +252,7 @@ cpstripped (charstring_t dest, size_t max, char *str) len = strlen(str); #ifdef MULTIBYTE_SUPPORT - mbtowc(NULL, NULL, 0); /* Reset shift state */ + if (mbtowc(NULL, NULL, 0)) {} /* Reset shift state */ #endif /* MULTIBYTE_SUPPORT */ /*