pkgsrc/textproc/xerces-c/patches/patch-ae

24 lines
748 B
Text

$NetBSD: patch-ae,v 1.4 2004/03/22 17:04:13 kristerw Exp $
--- util/RefHash3KeysIdPool.c.orig Mon Mar 22 17:54:00 2004
+++ util/RefHash3KeysIdPool.c Mon Mar 22 17:54:25 2004
@@ -117,9 +117,6 @@
{
initialize(modulus);
- // create default hasher
- fHash = new (fMemoryManager) HashXMLCh();
-
//
// Allocate the initial id pointers array. We don't have to zero them
// out since the fIdCounter value tells us which ones are valid. The
@@ -129,6 +126,9 @@
fIdPtrsCount = 256;
fIdPtrs = (TVal**) fMemoryManager->allocate(fIdPtrsCount * sizeof(TVal*)); //new TVal*[fIdPtrsCount];
fIdPtrs[0] = 0;
+
+ // create default hasher
+ fHash = new (fMemoryManager) HashXMLCh();
}
template <class TVal>