libidav/davqlexec.c

changeset 49
2f71f4ee247a
parent 1
b5bb7b3cd597
--- a/libidav/davqlexec.c	Thu Oct 03 18:52:51 2024 +0200
+++ b/libidav/davqlexec.c	Sun Oct 06 18:18:04 2024 +0200
@@ -464,7 +464,7 @@
  * execute a davql select statement
  */
 DavResult dav_exec_select(DavSession *sn, DavQLStatement *st, va_list ap) {
-    CxMempool *mp = cxMempoolCreate(128, NULL);
+    CxMempool *mp = cxBasicMempoolCreate(128);
     DavResult result;
     result.result = NULL;
     result.status = 1;
@@ -621,7 +621,7 @@
     result.status = 0;
     
     // do a propfind request for each resource on the stack
-    while(stack->size > 0) {
+    while(cxListSize(stack) > 0) {
         DavQLRes *sr_ptr = cxListAt(stack, 0); // get first element from the stack
         DavResource *root = sr_ptr->resource;
         int res_depth = sr_ptr->depth;

mercurial