summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cf1f3bd)
return value from mbtowc() even when it is called to reset the
shift state. So wrap that in an if statement with a null body.
const char *sp = charstring_buffer (s);
size_t remaining = charstring_bytes (s);
const char *sp = charstring_buffer (s);
size_t remaining = charstring_bytes (s);
- (void) mbtowc (NULL, NULL, 0); /* reset shift state */
+ if (mbtowc (NULL, NULL, 0)) {} /* reset shift state */
while (*sp && remaining > 0) {
wchar_t wide_char;
while (*sp && remaining > 0) {
wchar_t wide_char;
if ((sp = str)) {
#ifdef MULTIBYTE_SUPPORT
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) {
#endif
end = strlen(str);
while (*sp && remaining > 0 && end > 0) {
len = strlen(str);
#ifdef MULTIBYTE_SUPPORT
len = strlen(str);
#ifdef MULTIBYTE_SUPPORT
- mbtowc(NULL, NULL, 0); /* Reset shift state */
+ if (mbtowc(NULL, NULL, 0)) {} /* Reset shift state */
#endif /* MULTIBYTE_SUPPORT */
/*
#endif /* MULTIBYTE_SUPPORT */
/*
+ if (mbtowc(NULL, NULL, 0)) {}
while (charleft > 0) {
int clen;
while (charleft > 0) {
int clen;