X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-restore.c;h=f530bb4ed9388833e91a70cecd321c9daeb521d2;hb=941cb03e5774cb8af6925c29c25d1e94c9457ec6;hp=e4a5355beb4f2e5fd9e1eb12ef7dd9816d292951;hpb=520c9c3131b84e30e0d31084a94c55c265f2042f;p=notmuch 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) {