summaryrefslogtreecommitdiff
path: root/btrfs-show-super.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-show-super.c')
-rw-r--r--btrfs-show-super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfs-show-super.c b/btrfs-show-super.c
index ed0311fc..38c5d262 100644
--- a/btrfs-show-super.c
+++ b/btrfs-show-super.c
@@ -95,7 +95,8 @@ int main(int argc, char **argv)
}
}
- if (argc < optind + 1) {
+ set_argv0(argv);
+ if (check_argc_min(argc - optind, 1)) {
print_usage();
exit(1);
}