]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-tag.c
cli: config: make notmuch_config_open() "is new" parameter input only
[notmuch] / notmuch-tag.c
index b54c55dd71428ebca229f6135d57a78e109f8e00..148e856adbe6cda79d7c1487a7c6fd073bdb67af 100644 (file)
@@ -97,7 +97,7 @@ tag_query (void *ctx, notmuch_database_t *notmuch, const char *query_string,
     notmuch_query_t *query;
     notmuch_messages_t *messages;
     notmuch_message_t *message;
-    int ret = 0;
+    int ret = NOTMUCH_STATUS_SUCCESS;
 
     /* Optimize the query so it excludes messages that already have
      * the specified set of tags. */
@@ -236,7 +236,7 @@ notmuch_tag_command (void *ctx, int argc, char *argv[])
            return 1;
     }
 
-    config = notmuch_config_open (ctx, NULL, NULL);
+    config = notmuch_config_open (ctx, NULL, FALSE);
     if (config == NULL)
        return 1;