X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_realloc.c;h=753da2ec0b8867de2154c8fbf3509aaae93218d3;hp=f3d99ba7c38bc6650c4767bbb883692452c086b0;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index f3d99ba..753da2e 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -10,6 +10,7 @@ */ #include +#include /* * Reallocate some of the space in the folder @@ -58,10 +59,7 @@ folder_realloc (struct msgs *mp, int lo, int hi) seqset_t *tmpstats; /* first allocate the new message status space */ - if (!(tmpstats = malloc (MSGSTATSIZE(mp, lo, hi)))) { - advise (NULL, "unable to reallocate message storage"); - return NULL; - } + tmpstats = mh_xmalloc (MSGSTATSIZE(mp, lo, hi)); /* then copy messages status array with shift */ if (mp->nummsg > 0) {