libidav/session.c

changeset 55
1ce14068ef31
parent 49
2f71f4ee247a
--- a/libidav/session.c	Mon Oct 21 15:45:12 2024 +0200
+++ b/libidav/session.c	Wed Oct 23 10:37:43 2024 +0200
@@ -119,7 +119,7 @@
     DavSession *newsn = malloc(sizeof(DavSession));
     memset(newsn, 0, sizeof(DavSession));
     newsn->mp = cxBasicMempoolCreate(DAV_SESSION_MEMPOOL_SIZE);
-    newsn->pathcache = cxHashMapCreate(sn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE);
+    newsn->pathcache = cxHashMapCreate(newsn->mp->allocator, CX_STORE_POINTERS, DAV_PATH_CACHE_SIZE);
     newsn->key = sn->key;
     newsn->errorstr = NULL;
     newsn->error = DAV_OK;

mercurial