aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-10 22:13:21 +0100
committerMax Kellermann <max@duempel.org>2014-01-10 22:59:46 +0100
commitb330aa8dd5114db7119755dd0678773770c83992 (patch)
tree6f750bf2ee4ccbebd15d68c4414eae2045adffb0 /src/db/upnp/Directory.cxx
parent1b8053a618a84122367699a24f6b2b871f1f2100 (diff)
downloadmpd-b330aa8dd5114db7119755dd0678773770c83992.tar.gz
mpd-b330aa8dd5114db7119755dd0678773770c83992.tar.xz
mpd-b330aa8dd5114db7119755dd0678773770c83992.zip
db/upnp: remove unnecessary empty string checks from CharacterData()
Diffstat (limited to '')
-rw-r--r--src/db/upnp/Directory.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/db/upnp/Directory.cxx b/src/db/upnp/Directory.cxx
index bc871a448..cbe025e7a 100644
--- a/src/db/upnp/Directory.cxx
+++ b/src/db/upnp/Directory.cxx
@@ -160,8 +160,6 @@ protected:
virtual void CharacterData(const XML_Char *s, int len)
{
- if (s == 0 || *s == 0)
- return;
std::string str(s, len);
trimstring(str);
switch (m_path.back()[0]) {