X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=7184a5dfcf887bb6fcb81bc8f1ee63171f7bb286;hp=da99a1374688befd36a859807862a25d7043a825;hb=5fddc07dc31481453c1af186bf7da241c00cdbf1;hpb=1579fb334e0bbc42d5ae7692b184127f43ed7027 diff --git a/notmuch-reply.c b/notmuch-reply.c index da99a137..7184a5df 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -740,9 +740,8 @@ notmuch_reply_command (void *ctx, int argc, char *argv[]) return 1; } - notmuch = notmuch_database_open (notmuch_config_get_database_path (config), - NOTMUCH_DATABASE_MODE_READ_ONLY); - if (notmuch == NULL) + if (notmuch_database_open (notmuch_config_get_database_path (config), + NOTMUCH_DATABASE_MODE_READ_ONLY, ¬much)) return 1; query = notmuch_query_create (notmuch, query_string);