You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jo...@apache.org on 2009/03/30 14:04:00 UTC

svn commit: r759936 - /xerces/c/trunk/src/xercesc/util/TransService.cpp

Author: johns
Date: Mon Mar 30 12:04:00 2009
New Revision: 759936

URL: http://svn.apache.org/viewvc?rev=759936&view=rev
Log:
Initializing unitialized variables in TranscodeToStr and TranscodeFromStr [#XERCESC-1858]

Modified:
    xerces/c/trunk/src/xercesc/util/TransService.cpp

Modified: xerces/c/trunk/src/xercesc/util/TransService.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/TransService.cpp?rev=759936&r1=759935&r2=759936&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/TransService.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/TransService.cpp Mon Mar 30 12:04:00 2009
@@ -613,7 +613,7 @@
     XMLSize_t allocSize = len * sizeof(XMLCh);
     fString = (XMLByte*)fMemoryManager->allocate(allocSize);
 
-    XMLSize_t charsRead;
+    XMLSize_t charsRead = 0;
     XMLSize_t charsDone = 0;
 
     while(true) {
@@ -692,7 +692,7 @@
     ArrayJanitor<unsigned char> charSizes((unsigned char*)fMemoryManager->allocate(csSize * sizeof(unsigned char)),
                                           fMemoryManager);
 
-    XMLSize_t bytesRead;
+    XMLSize_t bytesRead = 0;
     XMLSize_t bytesDone = 0;
 
     while(true) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org