X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=126593d177d50f5b84f0d84636ae015853fe7298;hp=409c86ada6dd709461da7b20e7732a3a345a3880;hb=ed20210b6db0b237d48765351cb99b87be7a0509;hpb=53b397acfcd6b6372372593cc9047ee1a9599afd diff --git a/notmuch-dump.c b/notmuch-dump.c index 409c86ad..126593d1 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -41,6 +41,8 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) if (notmuch == NULL) return 1; + argc--; argv++; /* skip subcommand argument */ + if (argc && strcmp (argv[0], "--") != 0) { fprintf (stderr, "Warning: the output file argument of dump is deprecated.\n"); output = fopen (argv[0], "w");