From 77d10002bfebcdd137269de30e6bba54fa60c346 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 31 Mar 2018 18:55:56 -0600 Subject: [PATCH] dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect --- cde/programs/dtmail/dtmail/MsgScrollingList.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtmail/dtmail/MsgScrollingList.C b/cde/programs/dtmail/dtmail/MsgScrollingList.C index a2deab76..600615b8 100644 --- a/cde/programs/dtmail/dtmail/MsgScrollingList.C +++ b/cde/programs/dtmail/dtmail/MsgScrollingList.C @@ -2414,7 +2414,7 @@ MsgScrollingList::updateListItems(int current, nmsgs = _msgs->length(); newList = new XmString[nmsgs]; - memset (newList, '0', nmsgs * sizeof (XmString *)); + memset (newList, 0, nmsgs * sizeof (XmString *)); // Loop through _msgs and create new strings to display in the // scrolling list. This is inefficient and dominates the time -- 2.25.1