From d10fcec7752615894ccfe356f5ec14b2eb2a8b0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 12 Jul 2020 17:27:45 +0300 Subject: minor code cleaning --- protocols/JabberG/src/jabber_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_util.cpp') diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index e54b85b618..a1f80b2244 100755 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -586,7 +586,7 @@ char* CJabberProto::GetClientJID(const char *jid, char *dest, size_t destLen) mir_cslock lck(m_csLists); JABBER_LIST_ITEM *LI = ListGetItemPtr(LIST_ROSTER, jid); if (LI != nullptr) { - if (strchr(dest, '/')) { + if (strchr(dest, '/') == nullptr) { pResourceStatus r(LI->getBestResource()); if (r != nullptr) strncpy_s(dest, destLen, MakeJid(jid, r->m_szResourceName), _TRUNCATE); -- cgit v1.2.3