diff options
author | George Hazan <ghazan@miranda.im> | 2019-02-19 01:13:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-02-19 19:24:16 +0300 |
commit | c9e483e0fb1566d210530339d13a0e6e91260200 (patch) | |
tree | 92e35cfeef803235fdad89b69968d4b6fd64abdf /protocols/JabberG/src/jabber_agent.cpp | |
parent | af9bb538a0609893db7d5f2582595660395f0821 (diff) |
more checks for GetText()
Diffstat (limited to 'protocols/JabberG/src/jabber_agent.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_agent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_agent.cpp b/protocols/JabberG/src/jabber_agent.cpp index 4639d07795..1cb0aceae4 100644 --- a/protocols/JabberG/src/jabber_agent.cpp +++ b/protocols/JabberG/src/jabber_agent.cpp @@ -161,8 +161,8 @@ public: if (auto *xNode = queryNode->FirstChildElement("x")) {
// use new jabber:x:data form
- if (const char *ptszInstr = xNode->FirstChildElement("instructions")->GetText())
- JabberFormSetInstruction(m_hwnd, ptszInstr);
+ if (auto *n = xNode->FirstChildElement("instructions"))
+ JabberFormSetInstruction(m_hwnd, n->GetText());
JabberFormCreateUI(hFrame, xNode, &m_formHeight /*dummy*/);
}
|