libidav/resource.c

changeset 848
b71598a22e11
parent 822
f9e40f5c6daf
child 850
bbe2925eb590
--- a/libidav/resource.c	Sun Nov 17 13:11:14 2024 +0100
+++ b/libidav/resource.c	Thu Nov 28 17:18:43 2024 +0100
@@ -1043,7 +1043,7 @@
     // store properties
     int r = 0;
     sn->error = DAV_OK;
-    if(data->set || data->remove) {
+    if(cxListSize(data->set) > 0 || cxListSize(data->remove) > 0) {
         CxBuffer *request = create_proppatch_request(data);
         CxBuffer *response = cxBufferCreate(NULL, 1024, cxDefaultAllocator, CX_BUFFER_FREE_CONTENTS|CX_BUFFER_AUTO_EXTEND);
         //printf("request:\n%.*s\n\n", request->pos, request->space);

mercurial