From 1392edb8f6a78838fcbff17f925ad077f4ede38d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 Jun 2025 18:56:18 +0300 Subject: IEHistory: fix for occasional crash --- plugins/IEHistory/src/utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/IEHistory/src/utils.cpp') diff --git a/plugins/IEHistory/src/utils.cpp b/plugins/IEHistory/src/utils.cpp index 8ad76b8a8b..2463286b49 100644 --- a/plugins/IEHistory/src/utils.cpp +++ b/plugins/IEHistory/src/utils.cpp @@ -142,8 +142,7 @@ SearchResult SearchHistory(MCONTACT contact, MEVENT hFirstEvent, void *searchDat case SEARCH_TEXT: { ptrW data(DbEvent_GetText(&dbEvent)); - wchar_t *tmp = wcsstr(data, (wchar_t *)searchData); - if (tmp) + if (data && wcsstr(data, (wchar_t *)searchData)) found = true; } break; -- cgit v1.2.3