storage/Configured: fix fallback music directory

This was accidently disabled when storage plugins were introduced.
This commit is contained in:
Max Kellermann 2014-03-01 18:35:17 +01:00
parent b2c523e56d
commit 350d2bcd6e

View File

@ -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);