You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2003/05/20 23:06:30 UTC
cvs commit: xml-xerces/c/src/xercesc/util ValueVectorOf.c
knoaman 2003/05/20 14:06:30
Modified: c/src/xercesc/util ValueVectorOf.c
Log:
Set values to 0.
Revision Changes Path
1.6 +6 -0 xml-xerces/c/src/xercesc/util/ValueVectorOf.c
Index: ValueVectorOf.c
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/ValueVectorOf.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ValueVectorOf.c 16 May 2003 21:37:00 -0000 1.5
+++ ValueVectorOf.c 20 May 2003 21:06:30 -0000 1.6
@@ -56,6 +56,9 @@
/**
* $Log$
+ * Revision 1.6 2003/05/20 21:06:30 knoaman
+ * Set values to 0.
+ *
* Revision 1.5 2003/05/16 21:37:00 knoaman
* Memory manager implementation: Modify constructors to pass in the memory manager.
*
@@ -100,6 +103,7 @@
#if defined(XERCES_TMPLSINC)
#include <xercesc/util/ValueVectorOf.hpp>
#endif
+#include <string.h>
XERCES_CPP_NAMESPACE_BEGIN
@@ -119,6 +123,8 @@
(
fMaxCount * sizeof(TElem)
); //new TElem[fMaxCount];
+
+ memset(fElemList, 0, fMaxCount * sizeof(TElem));
}
template <class TElem>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org