Skip to content
Snippets Groups Projects
Commit e5db4b14 authored by John Snelson's avatar John Snelson
Browse files

Initializing unitialized variables in TranscodeToStr and TranscodeFromStr [#XERCESC-1858]

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@759936 13f79535-47bb-0310-9956-ffa450edef68
parent 7d4b0067
No related branches found
No related tags found
No related merge requests found
...@@ -613,7 +613,7 @@ void TranscodeToStr::transcode(const XMLCh *in, XMLSize_t len, XMLTranscoder* tr ...@@ -613,7 +613,7 @@ void TranscodeToStr::transcode(const XMLCh *in, XMLSize_t len, XMLTranscoder* tr
XMLSize_t allocSize = len * sizeof(XMLCh); XMLSize_t allocSize = len * sizeof(XMLCh);
fString = (XMLByte*)fMemoryManager->allocate(allocSize); fString = (XMLByte*)fMemoryManager->allocate(allocSize);
XMLSize_t charsRead; XMLSize_t charsRead = 0;
XMLSize_t charsDone = 0; XMLSize_t charsDone = 0;
while(true) { while(true) {
...@@ -692,7 +692,7 @@ void TranscodeFromStr::transcode(const XMLByte *in, XMLSize_t length, XMLTransco ...@@ -692,7 +692,7 @@ void TranscodeFromStr::transcode(const XMLByte *in, XMLSize_t length, XMLTransco
ArrayJanitor<unsigned char> charSizes((unsigned char*)fMemoryManager->allocate(csSize * sizeof(unsigned char)), ArrayJanitor<unsigned char> charSizes((unsigned char*)fMemoryManager->allocate(csSize * sizeof(unsigned char)),
fMemoryManager); fMemoryManager);
XMLSize_t bytesRead; XMLSize_t bytesRead = 0;
XMLSize_t bytesDone = 0; XMLSize_t bytesDone = 0;
while(true) { while(true) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment