X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;h=1a7ed580ec290c85881871c434b762a03bc87b92;hp=485fa72a759b5e61f74dfefb11d4a56f58a3b971;hb=61f0a5b8ee2adf540106a09c5f83fe634da6beb3;hpb=8bb5b6201ec2cb890655fee6ef7e540f401a4c7e diff --git a/notmuch-config.c b/notmuch-config.c index 485fa72a..1a7ed580 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -735,6 +735,8 @@ notmuch_config_command_set (void *ctx, char *item, int argc, char *argv[]) int notmuch_config_command (void *ctx, int argc, char *argv[]) { + argc--; argv++; /* skip subcommand argument */ + if (argc < 2) { fprintf (stderr, "Error: notmuch config requires at least two arguments.\n"); return 1;