aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-06-12 20:52:04 +0200
committerMax Kellermann <max@duempel.org>2012-06-12 20:52:04 +0200
commit48da345e79a0b690aa7d6d59ba8b50875988243b (patch)
treeb42bf4dad3f95bdcb18a4566f53280a9c8709d2d /src
parentedbfa46cbc01bfbb1f7f1b624aaeae635408528c (diff)
downloadmpd-48da345e79a0b690aa7d6d59ba8b50875988243b.tar.gz
mpd-48da345e79a0b690aa7d6d59ba8b50875988243b.tar.xz
mpd-48da345e79a0b690aa7d6d59ba8b50875988243b.zip
cmdline: don't initalise archive plugins for --version
Dump all archive plugins, even those that fail to initialise.
Diffstat (limited to 'src')
-rw-r--r--src/archive_list.c2
-rw-r--r--src/cmdline.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/src/archive_list.c b/src/archive_list.c
index 2656726b5..686498117 100644
--- a/src/archive_list.c
+++ b/src/archive_list.c
@@ -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) {
diff --git a/src/cmdline.c b/src/cmdline.c
index 10f0a3572..4b44892f3 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -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