From da12f9bb9e52a66915c9506c11b74967d94e2ece Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 May 2016 16:10:42 +0000 Subject: we don't try to cache NULL contact git-svn-id: http://svn.miranda-ng.org/main/trunk@16854 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcitems.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Clist_modern/src') 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; -- cgit v1.2.3