From 777e15bd7840f517c9fb826dadca513b5afbfd7e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Feb 2017 09:47:43 +0100 Subject: db/DatabaseSong: make the Storage optional Some database plugins don't use a Storage (e.g. UPnP), and with this plugin, DatabaseDetachSong() can crash. --- test/test_translate_song.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_translate_song.cxx') 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) -- cgit v1.2.3