Commit b330aa8d authored by Max Kellermann's avatar Max Kellermann

db/upnp: remove unnecessary empty string checks from CharacterData()

parent 1b8053a6
......@@ -59,9 +59,6 @@ protected:
}
virtual void CharacterData(const XML_Char *s, int len) {
if (len == 0)
return;
std::string str(s, len);
trimstring(str);
switch (m_path.back()[0]) {
......
......@@ -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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment