because we use calloc the message flags are cleared
after the allocation.
mp->msgstats = mh_xcalloc(MSGSTATSIZE(mp, mp->lowoff, mp->hghoff), 1);
/*
- ** Clear all the flag bits for all the message
- ** status entries we just allocated.
- ** TODO: use memset() ?
- */
- for (msgnum = mp->lowoff; msgnum <= mp->hghoff; msgnum++)
- clear_msg_flags(mp, msgnum);
-
- /*
** Scan through the array of messages we've seen and
** setup the initial flags for those messages in the
** newly allocated mp->msgstats area.