cmdline: don't initalise archive plugins for --version
Dump all archive plugins, even those that fail to initialise.
This commit is contained in:
parent
edbfa46cbc
commit
48da345e79
@ -80,8 +80,6 @@ void archive_plugin_print_all_suffixes(FILE * fp)
|
|||||||
|
|
||||||
for (unsigned i = 0; archive_plugins[i] != NULL; ++i) {
|
for (unsigned i = 0; archive_plugins[i] != NULL; ++i) {
|
||||||
const struct archive_plugin *plugin = archive_plugins[i];
|
const struct archive_plugin *plugin = archive_plugins[i];
|
||||||
if (!archive_plugins_enabled[i])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
suffixes = plugin->suffixes;
|
suffixes = plugin->suffixes;
|
||||||
while (suffixes && *suffixes) {
|
while (suffixes && *suffixes) {
|
||||||
|
@ -102,7 +102,6 @@ static void version(void)
|
|||||||
#ifdef ENABLE_ARCHIVE
|
#ifdef ENABLE_ARCHIVE
|
||||||
puts("\n"
|
puts("\n"
|
||||||
"Supported archives:\n");
|
"Supported archives:\n");
|
||||||
archive_plugin_init_all();
|
|
||||||
archive_plugin_print_all_suffixes(stdout);
|
archive_plugin_print_all_suffixes(stdout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user