summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-03-23 16:49:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-03-23 16:49:53 +0000
commit8b45e0ccd87209b7e8992ecb6dc0279e5d1b03ad (patch)
tree71bf504279c6d2b91b6b7da75ebfbf820aafb28f /src
parent9877c5881197a7a768a006cd87e54361c10096f7 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16530 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clistsettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/clistsettings.cpp b/src/mir_app/src/clistsettings.cpp
index c036c4364e..c499da4265 100644
--- a/src/mir_app/src/clistsettings.cpp
+++ b/src/mir_app/src/clistsettings.cpp
@@ -108,7 +108,7 @@ TCHAR* fnGetContactDisplayName(MCONTACT hContact, int mode)
mode &= ~GCDNF_NOCACHE;
else if (mode != GCDNF_NOMYHANDLE) {
cacheEntry = cli.pfnGetCacheEntry(hContact);
- if (cacheEntry->tszName)
+ if (cacheEntry && cacheEntry->tszName)
return cacheEntry->tszName;
}