dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect
authorJon Trulson <jon@radscan.com>
Sun, 1 Apr 2018 00:55:56 +0000 (18:55 -0600)
committerJon Trulson <jon@radscan.com>
Sun, 1 Apr 2018 00:55:56 +0000 (18:55 -0600)
cde/programs/dtmail/dtmail/MsgScrollingList.C

index a2deab761f328ea83f8f424f9b713c1efd37071c..600615b8e260645660d0d312e31cf3f4c06ffea3 100644 (file)
@@ -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