X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..0b05f0175b632c856ea4a2c4ae10c84694a1f385:/sbr/folder_pack.c?ds=sidebyside diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 82a366c8..ee2a2f90 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -6,7 +6,8 @@ * complete copyright information. */ -#include +#include "h/mh.h" +#include "error.h" /* * Pack the message in a folder. @@ -33,12 +34,11 @@ folder_pack (struct msgs **mpp, int verbose) * for all numbers from 1 to current high message. */ if (mp->lowoff > 1) { - if ((mp = folder_realloc (mp, 1, mp->hghmsg))) - *mpp = mp; - else { + if (!(mp = folder_realloc(mp, 1, mp->hghmsg))) { inform("unable to allocate folder storage"); return -1; } + *mpp = mp; } for (msgnum = mp->lowmsg, hole = 1; msgnum <= mp->hghmsg; msgnum++) {