aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/db/UpnpDatabasePlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 32f196964..d39bcdec9 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -569,7 +569,7 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
// Look for the name in the sub-container list
for (auto& dirent : dirbuf.m_containers) {
- if (!vpath[i].compare(titleToPathElt(dirent.m_title.c_str()))) {
+ if (!vpath[i].compare(titleToPathElt(dirent.m_title))) {
objid = dirent.m_id; // Next readdir target
found = true;
if (i == vpath.size() - 1) {
@@ -587,7 +587,7 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
// Path elt was not a container, look at the items list
for (auto& dirent : dirbuf.m_items) {
- if (!vpath[i].compare(titleToPathElt(dirent.m_title.c_str()))) {
+ if (!vpath[i].compare(titleToPathElt(dirent.m_title))) {
// If this is the last path elt, we found the target,
// else it does not exist
if (i == vpath.size() - 1) {