fix matches_tags_and

Sun, 02 Jul 2023 11:03:37 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 02 Jul 2023 11:03:37 +0200
changeset 768
eb495f3d4065
parent 767
f4acc783f25e
child 769
24b317ce5ca9

fix matches_tags_and

dav/tags.c file | annotate | diff | comparison | revisions
--- a/dav/tags.c	Sun Jul 02 10:48:27 2023 +0200
+++ b/dav/tags.c	Sun Jul 02 11:03:37 2023 +0200
@@ -654,7 +654,7 @@
     CxMap *tagmap = taglist2map(dav_tags);
     CxIterator i = cxListIterator(tags);
     cx_foreach(DavTag *, tag, i) {
-        if (cxMapGet(tagmap, cx_hash_key_str(tag->name))) {
+        if (cxMapGet(tagmap, cx_hash_key_str(tag->name)) == NULL) {
             ret = 0;
             break;
         }

mercurial