src/server/webdav/multistatus.c

branch
webdav
changeset 229
73cb1c98ef7d
parent 227
3c23855f7b46
child 230
ca50e1ebdc4d
--- a/src/server/webdav/multistatus.c	Fri Jan 17 19:08:19 2020 +0100
+++ b/src/server/webdav/multistatus.c	Fri Jan 17 19:12:05 2020 +0100
@@ -214,14 +214,9 @@
     }
     
     // we have the list -> add the new element
-    UcxList *newlistelm = ucx_list_append_a(a, errlist->end, property);
-    if(!newlistelm) {
+    if(webdav_plist_add(pool, &errlist->begin, &errlist->end, property)) {
         return 1;
     }
-    errlist->end = newlistelm;
-    if(!errlist->begin) {
-        errlist->begin = newlistelm;
-    }
     return 0;
 }
 

mercurial