cmdline: don't initalise archive plugins for --version

Dump all archive plugins, even those that fail to initialise.
This commit is contained in:
Max Kellermann 2012-06-12 20:52:04 +02:00
parent edbfa46cbc
commit 48da345e79
2 changed files with 0 additions and 3 deletions

View File

@ -80,8 +80,6 @@ void archive_plugin_print_all_suffixes(FILE * fp)
for (unsigned i = 0; archive_plugins[i] != NULL; ++i) {
const struct archive_plugin *plugin = archive_plugins[i];
if (!archive_plugins_enabled[i])
continue;
suffixes = plugin->suffixes;
while (suffixes && *suffixes) {

View File

@ -102,7 +102,6 @@ static void version(void)
#ifdef ENABLE_ARCHIVE
puts("\n"
"Supported archives:\n");
archive_plugin_init_all();
archive_plugin_print_all_suffixes(stdout);
#endif