aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-06 19:50:47 +0100
committerMax Kellermann <max@duempel.org>2009-11-06 19:50:47 +0100
commitf9218423b90a8effafba323abb088cebba34fb25 (patch)
tree994e8c48dd6bca294cca60398c49d27b7e4abb54 /src/archive_list.c
parentba34d48cf093cbfbe9d6e63e7177ba79791c6a4a (diff)
downloadmpd-f9218423b90a8effafba323abb088cebba34fb25.tar.gz
mpd-f9218423b90a8effafba323abb088cebba34fb25.tar.xz
mpd-f9218423b90a8effafba323abb088cebba34fb25.zip
utils: renamed stringFoundInStringArray()
No CamelCase. Use bool instead of int. Make both arguments mandatory.
Diffstat (limited to '')
-rw-r--r--src/archive_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/archive_list.c b/src/archive_list.c
index 8228fc961..e71b3036a 100644
--- a/src/archive_list.c
+++ b/src/archive_list.c
@@ -60,7 +60,8 @@ archive_plugin_from_suffix(const char *suffix)
for (i=0; i < num_archive_plugins; ++i) {
const struct archive_plugin *plugin = archive_plugins[i];
if (archive_plugins_enabled[i] &&
- stringFoundInStringArray(plugin->suffixes, suffix)) {
+ plugin->suffixes != NULL &&
+ string_array_contains(plugin->suffixes, suffix)) {
++i;
return plugin;
}