diff -r 61a3892a8dfb -r b71598a22e11 libidav/methods.c --- a/libidav/methods.c Sun Nov 17 13:11:14 2024 +0100 +++ b/libidav/methods.c Thu Nov 28 17:18:43 2024 +0100 @@ -836,7 +836,7 @@ { char prefix[8]; int pfxnum = 0; - if (data->set) { + if (cxListSize(data->set) > 0) { CxIterator i = cxListIterator(data->set); cx_foreach(DavProperty*, p, i) { if (strcmp(p->ns->name, "DAV:")) { @@ -845,7 +845,7 @@ } } } - if (data->remove) { + if (cxListSize(data->remove) > 0) { CxIterator i = cxListIterator(data->remove); cx_foreach(DavProperty*, p, i) { if (strcmp(p->ns->name, "DAV:")) {