Commit 350d2bcd authored by Max Kellermann's avatar Max Kellermann

storage/Configured: fix fallback music directory

This was accidently disabled when storage plugins were introduced.
parent b2c523e5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment