From a2d2210713ef12aee68198416150234e8981c4be Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jul 2019 11:08:47 +0200 Subject: [PATCH] ls: fix early return in uri_supported_scheme() Fixes regression by commit 4e2a551f30c1e1db13933d15c44d9186a2f37959 Closes https://github.com/MusicPlayerDaemon/MPD/issues/599 --- src/ls.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ls.cxx b/src/ls.cxx index c73fd77ac..cbbe175dc 100644 --- a/src/ls.cxx +++ b/src/ls.cxx @@ -65,7 +65,8 @@ uri_supported_scheme(const char *uri) noexcept assert(uri_has_scheme(uri)); input_plugins_for_each_enabled(plugin) - return plugin->SupportsUri(uri); + if (plugin->SupportsUri(uri)) + return true; return false; }