diff options
Diffstat (limited to 'notmuch-restore.c')
-rw-r--r-- | notmuch-restore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/notmuch-restore.c b/notmuch-restore.c index 02b563ca..4f4096ed 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -115,9 +115,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[]) if (config == NULL) return 1; - notmuch = notmuch_database_open (notmuch_config_get_database_path (config), - NOTMUCH_DATABASE_MODE_READ_WRITE); - if (notmuch == NULL) + if (notmuch_database_open (notmuch_config_get_database_path (config), + NOTMUCH_DATABASE_MODE_READ_WRITE, ¬much)) return 1; synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config); |