From 758b504cf3b954036ccbc21959b47999f7dabf27 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 13:07:42 +0100 Subject: db/upnp/Discovery: don't copy the response body Bloat. --- src/db/upnp/Discovery.cxx | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3