]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-dump.c
xregcomp: don't consider every regex compilation failure an internal error.
[notmuch] / notmuch-dump.c
index 409c86ada6dd709461da7b20e7732a3a345a3880..126593d177d50f5b84f0d84636ae015853fe7298 100644 (file)
@@ -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");