summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-20 23:20:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-20 23:20:14 +0300
commit59ffcc190bff32a555e69de3bfc43d1ea2e99003 (patch)
tree70ef275aec14b76ce14bd89bf39248ecd94ac2ac /protocols
parenta144aedf745f07beed2257b77839ad7c979b9eec (diff)
more checks for xml
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_xml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_xml.cpp b/protocols/JabberG/src/jabber_xml.cpp
index 07b45dc73e..bd0fbe08eb 100644
--- a/protocols/JabberG/src/jabber_xml.cpp
+++ b/protocols/JabberG/src/jabber_xml.cpp
@@ -90,7 +90,8 @@ XmlNode::XmlNode(const char *pszName)
XmlNode::XmlNode(const char *pszName, const char *ptszText)
{
m_hXml = NewElement(pszName); InsertEndChild(m_hXml);
- m_hXml->SetText(ptszText);
+ if (ptszText)
+ m_hXml->SetText(ptszText);
}
/////////////////////////////////////////////////////////////////////////////////////////