X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_realloc.c;h=bfdc44f5e36a69d84be7a49af41b53aa3bccc298;hp=47b9281ee92205ed9a4d31cb78e079a74522f74d;hb=10eff860a28b96582526eb739fd0a55441669938;hpb=d6742b1bb19c7eca8488402484a6e4f55543d789 diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 47b9281..bfdc44f 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -54,7 +54,7 @@ folder_realloc(struct msgs *mp, int lo, int hi) seqset_t *tmpstats; /* first allocate the new message status space */ - tmpstats = mh_xmalloc(MSGSTATSIZE(mp, lo, hi)); + tmpstats = mh_xcalloc(MSGSTATSIZE(mp, lo, hi), 1); /* then copy messages status array with shift */ if (mp->nummsg > 0) {