src/server/plugins/postgresql/pgtest.c

changeset 490
d218607f5a7e
parent 415
d938228c382e
--- a/src/server/plugins/postgresql/pgtest.c	Sat Mar 25 17:18:51 2023 +0100
+++ b/src/server/plugins/postgresql/pgtest.c	Fri May 05 18:02:11 2023 +0200
@@ -125,7 +125,7 @@
     node = node->children;
     
     cxmutstr href = {NULL, 0};
-    CxMap *properties = cxHashMapCreate(a, 16);
+    CxMap *properties = cxHashMapCreate(a, CX_STORE_POINTERS, 16);
     
     while(node) {
         if(node->type == XML_ELEMENT_NODE) {
@@ -206,7 +206,7 @@
     TestMultistatus *ms = cxMalloc(mp->allocator, sizeof(TestMultistatus));
     ms->doc = doc;
     ms->mp = mp;
-    ms->responses = cxHashMapCreate((CxAllocator*)mp->allocator, 8);
+    ms->responses = cxHashMapCreate((CxAllocator*)mp->allocator, CX_STORE_POINTERS, 8);
     
     // parse response
     xmlNode *xml_root = xmlDocGetRootElement(doc);

mercurial