libidav/methods.c

changeset 848
b71598a22e11
parent 847
61a3892a8dfb
child 850
bbe2925eb590
--- 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:")) {

mercurial