diff options
author | George Hazan <george.hazan@gmail.com> | 2025-06-12 18:56:18 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-06-12 18:56:18 +0300 |
commit | 1392edb8f6a78838fcbff17f925ad077f4ede38d (patch) | |
tree | eb1d160402388e63c94907fcefac3756e35c6708 /plugins/IEHistory/src/utils.cpp | |
parent | 5901c284963c315039264fb77a90280633f3e532 (diff) |
IEHistory: fix for occasional crash
Diffstat (limited to 'plugins/IEHistory/src/utils.cpp')
-rw-r--r-- | plugins/IEHistory/src/utils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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; |