From 0d89d32f2e832fdb7ff45a2c24cea42f1d43b59e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jul 2013 15:53:17 +0000 Subject: 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 --- plugins/TabSRMM/src/chat/manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins') 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; -- cgit v1.2.3