aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch-config.c')
-rw-r--r--notmuch-config.c2
1 files changed, 2 insertions, 0 deletions
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;