summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-06-12 18:56:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-06-12 18:56:18 +0300
commit1392edb8f6a78838fcbff17f925ad077f4ede38d (patch)
treeeb1d160402388e63c94907fcefac3756e35c6708 /plugins/IEHistory/src/utils.cpp
parent5901c284963c315039264fb77a90280633f3e532 (diff)
IEHistory: fix for occasional crash
Diffstat (limited to 'plugins/IEHistory/src/utils.cpp')
-rw-r--r--plugins/IEHistory/src/utils.cpp3
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;