summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-08 15:53:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-08 15:53:17 +0000
commit0d89d32f2e832fdb7ff45a2c24cea42f1d43b59e (patch)
treeb1a4e05027eb33c8f070f0da53484e2ca27f98f0 /plugins
parent6ca6109bae7413647a8478a32e62fb8b798633a9 (diff)
fix for crash in tabSRMM, when Skype passes nickname=NULL inside a chat
git-svn-id: http://svn.miranda-ng.org/main/trunk@5281 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/chat/manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp
index e5ea48094f..2dec98fe54 100644
--- a/plugins/TabSRMM/src/chat/manager.cpp
+++ b/plugins/TabSRMM/src/chat/manager.cpp
@@ -1011,6 +1011,10 @@ BOOL TM_RemoveAll(STATUSINFO** ppStatusList)
//MAD: alternative sorting by Nullbie
static int sttCompareNicknames(const TCHAR *s1, const TCHAR *s2)
{
+ if (!s1 && !s2) return 0;
+ if (!s1 && s2) return +1;
+ if (s1 && !s2) return -1;
+
// skip rubbish
while (*s1 && !_istalpha(*s1)) ++s1;
while (*s2 && !_istalpha(*s2)) ++s2;