From 3fe5f97dcd7c8ef8deabc32a83f5075df13bc8d2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 12 Apr 2023 18:45:44 +0300 Subject: fix for another potential crash --- plugins/NewEventNotify/src/popup.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/NewEventNotify/src/popup.cpp') diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index 870d0b0835..cfb40947b7 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -190,8 +190,7 @@ static wchar_t* GetEventPreview(DB::EventInfo &dbei) // filenames comment2 = mir_wstrdup(blob.getName()); // description - if (*blob.getDescr()) - comment1 = mir_wstrdup(blob.getDescr()); + comment1 = mir_wstrdup(blob.getDescr()); } commentFix = POPUP_COMMENT_FILE; break; -- cgit v1.2.3