summaryrefslogtreecommitdiff
path: root/test/test_translate_song.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-08 09:47:43 +0100
committerMax Kellermann <max@musicpd.org>2017-02-08 10:05:55 +0100
commit777e15bd7840f517c9fb826dadca513b5afbfd7e (patch)
tree7fefb66d11cf563e6fd6330a627eb88fd1fb9df1 /test/test_translate_song.cxx
parentf689e28958f6486fdf2a8add463e2f83e9920547 (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 'test/test_translate_song.cxx')
-rw-r--r--test/test_translate_song.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx
index 0c4be2f37..3e8ae2111 100644
--- a/test/test_translate_song.cxx
+++ b/test/test_translate_song.cxx
@@ -109,7 +109,7 @@ static const char *uri2 = "foo/bar.ogg";
DetachedSong
DatabaseDetachSong(gcc_unused const Database &db,
- gcc_unused const Storage &_storage,
+ gcc_unused const Storage *_storage,
const char *uri)
{
if (strcmp(uri, uri2) == 0)