--- a/src/mediaserver/mediaserver.cxx
+++ b/src/mediaserver/mediaserver.cxx
@@ -24,7 +24,7 @@
 
 MediaServer::MediaServer(const string& deviceid, const string& friendlyname,
     const std::unordered_map<std::string, VDirContent>& files)
-    : UpnpDevice(deviceid, files)
+    : UpnpDevice(deviceid, files), m_UDN(deviceid), m_fname(friendlyname)
 {
     m_cd = new ContentDirectory(this);
     m_cm = new UpMpdConMan(this);