X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=e434d033136670eacf4911bc7c64fe5fd53e495d;hp=ec2f20fa45713fd92c5564fa869a10f3e6b7c40f;hb=e76f6517de020783d828be59f461f1d4f465c4b4;hpb=ca3a4fc02287f65c3587908012d36e68df0200b1 diff --git a/notmuch.c b/notmuch.c index ec2f20fa..e434d033 100644 --- a/notmuch.c +++ b/notmuch.c @@ -202,16 +202,15 @@ static int notmuch_command (void *ctx, unused(int argc), unused(char *argv[])) { notmuch_config_t *config; - notmuch_bool_t is_new; char *db_path; struct stat st; - config = notmuch_config_open (ctx, NULL, &is_new); + config = notmuch_config_open (ctx, NULL, TRUE); /* If the user has never configured notmuch, then run * notmuch_setup_command which will give a nice welcome message, * and interactively guide the user through the configuration. */ - if (is_new) { + if (notmuch_config_is_new (config)) { notmuch_config_close (config); return notmuch_setup_command (ctx, 0, NULL); }