Skip to content
Snippets Groups Projects
Commit 738b3ce2 authored by Khaled Noaman's avatar Khaled Noaman
Browse files

Set values to 0.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175007 13f79535-47bb-0310-9956-ffa450edef68
parent 0dc62717
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ ValueVectorOf<TElem>::ValueVectorOf(const unsigned int maxElems,
(
fMaxCount * sizeof(TElem)
); //new TElem[fMaxCount];
memset(fElemList, 0, fMaxCount * sizeof(TElem));
}
template <class TElem>
......
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