aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/storage/Configured.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/storage/Configured.cxx b/src/storage/Configured.cxx
index 29e511c7a..800a18ba0 100644
--- a/src/storage/Configured.cxx
+++ b/src/storage/Configured.cxx
@@ -68,10 +68,7 @@ CreateConfiguredStorage(Error &error)
assert(!error.IsDefined());
auto uri = config_get_string(CONF_MUSIC_DIR, nullptr);
- if (uri == nullptr)
- return nullptr;
-
- if (uri_has_scheme(uri))
+ if (uri != nullptr && uri_has_scheme(uri))
return CreateConfiguredStorageUri(uri, error);
return CreateConfiguredStorageLocal(error);