X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=126593d177d50f5b84f0d84636ae015853fe7298;hp=409c86ada6dd709461da7b20e7732a3a345a3880;hb=61f0a5b8ee2adf540106a09c5f83fe634da6beb3;hpb=8bb5b6201ec2cb890655fee6ef7e540f401a4c7e 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");