diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-19 16:10:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-19 16:10:42 +0000 |
commit | da12f9bb9e52a66915c9506c11b74967d94e2ece (patch) | |
tree | 13ad29a31ace99a1e939cfb85dea4ceddb6cd414 /plugins/Clist_modern | |
parent | 65f3c2b16152a7aaf4f4e6de6f59b204a91abca6 (diff) |
we don't try to cache NULL contact
git-svn-id: http://svn.miranda-ng.org/main/trunk@16854 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index 7bf3c4aff2..2440bbec89 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -516,6 +516,9 @@ ClcContact* cliCreateClcContact() ClcCacheEntry* cliCreateCacheItem(MCONTACT hContact)
{
+ if (hContact == NULL)
+ return NULL;
+
ClcCacheEntry *pdnce = (ClcCacheEntry *)mir_calloc(sizeof(ClcCacheEntry));
if (pdnce == NULL)
return NULL;
|