diff --git a/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp b/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp index 844740b1f3bd25be124a26768627233fb7b4b5e3..a6df24f4d7d070db04f7f2c7b656bdb0e847f545 100644 --- a/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp +++ b/src/xercesc/util/Transcoders/Iconv/IconvTransService.cpp @@ -382,7 +382,7 @@ bool IconvLCPTranscoder::transcode( const XMLCh* const toTranscode wideCharBuf[wLent] = 0x00; // Ok, go ahead and try the transcoding. If it fails, then ... - size_t mblen ::wcstombs(toFill, wideCharBuf, maxBytes); + size_t mblen = ::wcstombs(toFill, wideCharBuf, maxBytes); if (mblen == -1) { delete [] allocatedArray;