X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_realloc.c;h=e7c4bc442bb6955da611d1c99fe72b3d84f6d392;hp=753da2ec0b8867de2154c8fbf3509aaae93218d3;hb=008837e090c008e3afe7a9c8667070bafa091e62;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2 diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 753da2e..e7c4bc4 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -47,10 +47,7 @@ folder_realloc (struct msgs *mp, int lo, int hi) * status array. So we don't have to move anything and can * just realloc the message status array. */ - if (!(mp->msgstats = realloc (mp->msgstats, MSGSTATSIZE(mp, lo, hi)))) { - advise (NULL, "unable to reallocate message storage"); - return NULL; - } + mp->msgstats = mh_xrealloc (mp->msgstats, MSGSTATSIZE(mp, lo, hi)); } else { /* * We are changing the offset of the message status