]> git.marmaro.de Git - mmh/commitdiff
don't manuall clear the message flags
authorPhilipp Takacs <philipp@bureaucracy.de>
Wed, 18 Mar 2020 19:02:19 +0000 (20:02 +0100)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 29 Mar 2020 19:23:55 +0000 (21:23 +0200)
because we use calloc the message flags are cleared
after the allocation.

sbr/folder_read.c

index 722ee2fd51f7abcc023f39f57383ce344e7fb230..011958f861d342ab1998d8af3d8d2456d4622515 100644 (file)
@@ -130,14 +130,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