X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch-count.c;h=61722edbec2d571205470b1519447e548644eabe;hb=e76f6517de020783d828be59f461f1d4f465c4b4;hp=9c2ad7b2a9226bb8ee616779d88cde69171ac704;hpb=6f7469f54744656f90ce215f365d5731e16acd3c;p=notmuch diff --git a/notmuch-count.c b/notmuch-count.c index 9c2ad7b2..61722edb 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -62,13 +62,12 @@ notmuch_count_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; - 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_str = query_string_from_args (ctx, argc-opt_index, argv+opt_index);