diff options
Diffstat (limited to 'btrfstune.c')
-rw-r--r-- | btrfstune.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/btrfstune.c b/btrfstune.c index 0907aa9e..f731e3d2 100644 --- a/btrfstune.c +++ b/btrfstune.c @@ -442,9 +442,8 @@ int main(int argc, char *argv[]) } set_argv0(argv); - argc = argc - optind; device = argv[optind]; - if (check_argc_exact(argc, 1)) { + if (check_argc_exact(argc - optind, 1)) { print_usage(); return 1; } |