fixes creation of davql arg list

Sun, 29 Apr 2018 11:48:12 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 29 Apr 2018 11:48:12 +0200
changeset 374
38ae05d46f9a
parent 373
dcc03142eb5f
child 375
39fd327f81da

fixes creation of davql arg list

dav/sync.c file | annotate | diff | comparison | revisions
libidav/davqlparser.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Sun Apr 29 11:16:41 2018 +0200
+++ b/dav/sync.c	Sun Apr 29 11:48:12 2018 +0200
@@ -1369,6 +1369,7 @@
         UcxList *local_tags = sync_get_file_tags(dir, local, &tags_changed);
         if(tags_changed) {
             switch(dir->tagconfig->conflict) {
+                case TAG_NO_CONFLICT:
                 case TAG_KEEP_LOCAL: {
                     store_empty_tags = TRUE;
                     tags = local_tags;
--- a/libidav/davqlparser.c	Sun Apr 29 11:16:41 2018 +0200
+++ b/libidav/davqlparser.c	Sun Apr 29 11:48:12 2018 +0200
@@ -1403,9 +1403,6 @@
                     if (depthexpr->type == DAVQL_NUMBER) {
                         if (depthexpr->srctext.ptr[0] == '%') {
                             stmt->depth = DAV_DEPTH_PLACEHOLDER;
-                            stmt->args = ucx_list_append(
-                                    stmt->args,
-                                    (void*)(intptr_t)depthexpr->srctext.ptr[1]);
                         } else {
                             sstr_t depthstr = depthexpr->srctext;
                             char *conv = malloc(depthstr.length+1);
@@ -1623,7 +1620,7 @@
     if (stmt->errorcode) {
         return;
     }
-    dav_add_fmt_args(stmt, stmt->path); // add possible path args
+    //dav_add_fmt_args(stmt, stmt->path); // add possible path args
     
     // Consume with clause (if any)
     if (token_is(tokens, DAVQL_TOKEN_KEYWORD)

mercurial