X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=cb720cc2f9a76d36fd8a4194fd9d9dc07f3029f5;hp=7788743da44dcfca5e8ce5ba1dce085025a79b5c;hb=ba5729421825e0ec9d38aa9d656553f329aa6f09;hpb=5fddc07dc31481453c1af186bf7da241c00cdbf1 diff --git a/notmuch-new.c b/notmuch-new.c index 7788743d..cb720cc2 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -900,7 +900,8 @@ notmuch_new_command (void *ctx, int argc, char *argv[]) return 1; printf ("Found %d total files (that's not much mail).\n", count); - notmuch = notmuch_database_create (db_path); + if (notmuch_database_create (db_path, ¬much)) + return 1; add_files_state.total_files = count; } else { if (notmuch_database_open (db_path, NOTMUCH_DATABASE_MODE_READ_WRITE,