diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 14:24:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 14:24:38 +0100 |
commit | be0759d4651126c0695c7ff83e1f2a9feca7ec4e (patch) | |
tree | 14d37ebaa48631d3f29aca5a86b2e49db13e55a6 /src/db/upnp/Device.cxx | |
parent | 339d939873f4dfcb11c9ab7737118f50218dfc96 (diff) | |
download | mpd-be0759d4651126c0695c7ff83e1f2a9feca7ec4e.tar.gz mpd-be0759d4651126c0695c7ff83e1f2a9feca7ec4e.tar.xz mpd-be0759d4651126c0695c7ff83e1f2a9feca7ec4e.zip |
db/upnp/Discovery: don't copy XML to std::string
Pass "const char *" to Expat.
Diffstat (limited to 'src/db/upnp/Device.cxx')
-rw-r--r-- | src/db/upnp/Device.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/upnp/Device.cxx b/src/db/upnp/Device.cxx index 609f2cbfc..b5174236b 100644 --- a/src/db/upnp/Device.cxx +++ b/src/db/upnp/Device.cxx @@ -99,12 +99,12 @@ protected: } }; -UPnPDevice::UPnPDevice(const std::string &url, const std::string &description) +UPnPDevice::UPnPDevice(const std::string &url, const char *description) :ok(false) { UPnPDeviceParser mparser(*this); Error error; - if (!mparser.Parse(description.data(), description.length(), true, + if (!mparser.Parse(description, strlen(description), true, error)) { // TODO: pass Error to caller LogError(error); |