aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-restore.c')
-rw-r--r--notmuch-restore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-restore.c b/notmuch-restore.c
index e4a5355b..f530bb4e 100644
--- a/notmuch-restore.c
+++ b/notmuch-restore.c
@@ -44,6 +44,8 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[])
synchronize_flags = notmuch_config_get_maildir_synchronize_flags (config);
+ argc--; argv++; /* skip subcommand argument */
+
if (argc) {
input = fopen (argv[0], "r");
if (input == NULL) {