X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-reply.c;h=7184a5dfcf887bb6fcb81bc8f1ee63171f7bb286;hb=05c3e83bd272635ecc5e86d767250de1eb680a09;hp=da99a1374688befd36a859807862a25d7043a825;hpb=6f7469f54744656f90ce215f365d5731e16acd3c;p=notmuch 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);