aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-tag.c')
-rw-r--r--notmuch-tag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-tag.c b/notmuch-tag.c
index 6204ae3c..dded39ea 100644
--- a/notmuch-tag.c
+++ b/notmuch-tag.c
@@ -65,6 +65,8 @@ notmuch_tag_command (void *ctx, unused (int argc), unused (char *argv[]))
return 1;
}
+ argc--; argv++; /* skip subcommand argument */
+
for (i = 0; i < argc; i++) {
if (strcmp (argv[i], "--") == 0) {
i++;