diff -r 22257f6d06a3 -r bc782cca0759 libidav/davqlexec.c --- a/libidav/davqlexec.c Thu May 23 23:19:06 2024 +0200 +++ b/libidav/davqlexec.c Thu May 23 23:23:36 2024 +0200 @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include "davqlexec.h" #include "utils.h" @@ -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;