aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-06-21 12:37:23 +0200
committerMax Kellermann <max@duempel.org>2014-06-21 12:37:23 +0200
commit936eb43c0e00f6e8cee971cbdc2f0bf119e1034b (patch)
tree3d71a96b80e630c922a1dc1b90257252094b20c0 /src/db/plugins
parentbb66cfa78079fbfef06741a584213f02085b08f7 (diff)
downloadmpd-936eb43c0e00f6e8cee971cbdc2f0bf119e1034b.tar.gz
mpd-936eb43c0e00f6e8cee971cbdc2f0bf119e1034b.tar.xz
mpd-936eb43c0e00f6e8cee971cbdc2f0bf119e1034b.zip
db/proxy: initialize LightSong::real_uri
Fixes potential crash.
Diffstat (limited to 'src/db/plugins')
-rw-r--r--src/db/plugins/ProxyDatabasePlugin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx
index a3cc640cf..368f0c8f7 100644
--- a/src/db/plugins/ProxyDatabasePlugin.cxx
+++ b/src/db/plugins/ProxyDatabasePlugin.cxx
@@ -184,6 +184,7 @@ ProxySong::ProxySong(const mpd_song *song)
{
directory = nullptr;
uri = mpd_song_get_uri(song);
+ real_uri = nullptr;
tag = &tag2;
mtime = mpd_song_get_last_modified(song);
start_ms = mpd_song_get_start(song) * 1000;