diff --git a/btrfs.c b/btrfs.c index 1852a217..062bc515 100644 --- a/btrfs.c +++ b/btrfs.c @@ -263,8 +263,6 @@ int main(int argc, char **argv) { const struct cmd_struct *cmd; - crc32c_optimization_init(); - argc--; argv++; handle_options(&argc, &argv); @@ -280,6 +278,8 @@ int main(int argc, char **argv) handle_help_options_next_level(cmd, argc, argv); + crc32c_optimization_init(); + fixup_argv0(argv, cmd->token); exit(cmd->fn(argc, argv)); }