X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_read.c;h=bb88659824805f138c3d68605cbf658de64db2e3;hp=8e3a3ffa7e6648cbc3c917a2fc5aef867e675214;hb=5dd6771b28c257af405d7248639ed0e3bcdce38b;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2 diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 8e3a3ff..bb88659 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -2,8 +2,6 @@ /* * folder_read.c -- initialize folder structure and read folder * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -76,10 +74,7 @@ folder_read (char *name) */ if (mp->nummsg >= len) { len += NUMMSGS; - if (!(mi = (int *) realloc (mi, - (size_t) (len * sizeof(*mi))))) { - adios (NULL, "unable to allocate storage"); - } + mi = (int *) mh_xrealloc (mi, (size_t) (len * sizeof(*mi))); } /* Check if this is the first message we've seen */