diff options
author | George Hazan <george.hazan@gmail.com> | 2015-02-12 17:19:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-02-12 17:19:11 +0000 |
commit | 47d0d742d0ba7cac754a7b1765328fb33a14ffc0 (patch) | |
tree | f62b24ef94f19a06fce5e7260f858477e293a828 /plugins/TabSRMM | |
parent | 07f9c668a8292fa0869faf80881956592bf5096f (diff) |
complex fix against NULL in nicks
git-svn-id: http://svn.miranda-ng.org/main/trunk@12097 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat/manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp index 01308537b1..0c8302e101 100644 --- a/plugins/TabSRMM/src/chat/manager.cpp +++ b/plugins/TabSRMM/src/chat/manager.cpp @@ -28,6 +28,9 @@ static int sttCompareNicknames(const TCHAR *s1, const TCHAR *s2)
{
+ if (s2 == NULL)
+ return 1;
+
// skip rubbish
while (*s1 && !_istalpha(*s1)) ++s1;
while (*s2 && !_istalpha(*s2)) ++s2;
|