summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 0165fba4..8fb97712 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -9579,9 +9579,8 @@ int cmd_check(int argc, char **argv)
break;
}
}
- argc = argc - optind;
- if (check_argc_exact(argc, 1))
+ if (check_argc_exact(argc - optind, 1))
usage(cmd_check_usage);
if (ctx.progress_enabled) {