diff options
author | Max Kellermann <max@musicpd.org> | 2017-02-08 09:47:43 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-02-08 10:05:55 +0100 |
commit | 777e15bd7840f517c9fb826dadca513b5afbfd7e (patch) | |
tree | 7fefb66d11cf563e6fd6330a627eb88fd1fb9df1 /src/SongLoader.cxx | |
parent | f689e28958f6486fdf2a8add463e2f83e9920547 (diff) |
db/DatabaseSong: make the Storage optional
Some database plugins don't use a Storage (e.g. UPnP), and with this
plugin, DatabaseDetachSong() can crash.
Diffstat (limited to 'src/SongLoader.cxx')
-rw-r--r-- | src/SongLoader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SongLoader.cxx b/src/SongLoader.cxx index 7d03ff075..72c035038 100644 --- a/src/SongLoader.cxx +++ b/src/SongLoader.cxx @@ -41,7 +41,7 @@ SongLoader::LoadFromDatabase(const char *uri) const { #ifdef ENABLE_DATABASE if (db != nullptr) - return DatabaseDetachSong(*db, *storage, uri); + return DatabaseDetachSong(*db, storage, uri); #else (void)uri; #endif |