From b3d32781d25365c2270210bc9ef7b645d83b8dbe Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Wed, 18 Mar 2020 20:02:19 +0100 Subject: [PATCH] don't manuall clear the message flags because we use calloc the message flags are cleared after the allocation. --- sbr/folder_read.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 722ee2f..011958f 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -131,14 +131,6 @@ folder_read(char *name) 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. -- 1.7.10.4