From: Jon Trulson Date: Sun, 1 Apr 2018 00:55:56 +0000 (-0600) Subject: dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect X-Git-Tag: 2.2.4a~154 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77d10002bfebcdd137269de30e6bba54fa60c346;p=oweals%2Fcde.git dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect --- 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