aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Discovery.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 13:07:42 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 13:07:42 +0100
commit758b504cf3b954036ccbc21959b47999f7dabf27 (patch)
tree6b43b2c0831924e2ea222e4210f2c817d818fe72 /src/db/upnp/Discovery.cxx
parent416f7c26009b11e12254261a02d925c824fbc154 (diff)
downloadmpd-758b504cf3b954036ccbc21959b47999f7dabf27.tar.gz
mpd-758b504cf3b954036ccbc21959b47999f7dabf27.tar.xz
mpd-758b504cf3b954036ccbc21959b47999f7dabf27.zip
db/upnp/Discovery: don't copy the response body
Bloat.
Diffstat (limited to 'src/db/upnp/Discovery.cxx')
-rw-r--r--src/db/upnp/Discovery.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx
index 89ece3dfd..b33dbd395 100644
--- a/src/db/upnp/Discovery.cxx
+++ b/src/db/upnp/Discovery.cxx
@@ -71,10 +71,9 @@ UPnPDeviceDirectory::discoExplorer()
if (code != UPNP_E_SUCCESS) {
continue;
}
- std::string sdesc(buf);
// Update or insert the device
- ContentDirectoryDescriptor d(tsk->url, sdesc,
+ ContentDirectoryDescriptor d(tsk->url, buf,
time(0), tsk->expires);
if (!d.device.ok) {
continue;