Don't call crc32c_optimization_init() until we know that a command is
actually going to be invoked.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
{
const struct cmd_struct *cmd;
{
const struct cmd_struct *cmd;
- crc32c_optimization_init();
-
argc--;
argv++;
handle_options(&argc, &argv);
argc--;
argv++;
handle_options(&argc, &argv);
handle_help_options_next_level(cmd, argc, argv);
handle_help_options_next_level(cmd, argc, argv);
+ crc32c_optimization_init();
+
fixup_argv0(argv, cmd->token);
exit(cmd->fn(argc, argv));
}
fixup_argv0(argv, cmd->token);
exit(cmd->fn(argc, argv));
}