dav/sync.c

changeset 288
cd3846cc8b25
parent 274
5577d3eae04c
child 294
dd5c0ebdf54f
--- a/dav/sync.c	Thu Aug 31 12:44:25 2017 +0200
+++ b/dav/sync.c	Thu Aug 31 12:55:09 2017 +0200
@@ -1001,13 +1001,7 @@
                     resources = ucx_list_append(resources, res);
                 }
             } else if(!sstrcmp(name, S("remove"))) {
-                LocalResource *res = calloc(1, sizeof(LocalResource));
-                res->path = sstrdup(value).ptr;
-                if(res) {
-                    //ucx_map_sstr_put(db->remove, value, res);
-                    ucx_map_sstr_remove(db->resources, value);
-                }
-                
+                ucx_map_sstr_remove(db->resources, value);
             }
             
             free(value.ptr);

mercurial