]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-tag.c
test: emacs: toggle eliding of non-matching messages in `notmuch-show'
[notmuch] / notmuch-tag.c
index bd56fd14a4699b74f5567f6ac0e3d4284a49600e..7d186399ba786149d607ca2b45837836a43af802 100644 (file)
@@ -229,9 +229,8 @@ notmuch_tag_command (void *ctx, int argc, char *argv[])
     if (config == NULL)
        return 1;
 
-    notmuch = notmuch_database_open (notmuch_config_get_database_path (config),
-                                    NOTMUCH_DATABASE_MODE_READ_WRITE);
-    if (notmuch == NULL)
+    if (notmuch_database_open (notmuch_config_get_database_path (config),
+                              NOTMUCH_DATABASE_MODE_READ_WRITE, &notmuch))
        return 1;
 
     synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config);