diff -r 1f40ca07ae1b -r 839fefbdedc7 libidav/davqlexec.c --- a/libidav/davqlexec.c Sat Apr 20 13:01:58 2024 +0200 +++ b/libidav/davqlexec.c Thu May 23 22:35:45 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;