X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhstore.c;h=fae054fa1461075beb4b4ea7b2a5b5e3b886ba03;hp=2a0ddf9ea0dc7b165479be2d02010c01c075fea4;hb=6e7d34c614291079de750ceda1d4f5ec537beb81;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8 diff --git a/uip/mhstore.c b/uip/mhstore.c index 2a0ddf9..fae054f 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -261,8 +261,7 @@ main(int argc, char **argv) ** check if message is coming from file */ if (file) { - if (!(cts = (CT *) mh_xcalloc((size_t) 2, sizeof(*cts)))) - adios(EX_OSERR, NULL, "out of memory"); + cts = (CT *) mh_xcalloc((size_t) 2, sizeof(*cts)); ctp = cts; if ((ct = parse_mime(file))) @@ -294,9 +293,8 @@ main(int argc, char **argv) exit(EX_USAGE); seq_setprev(mp); /* set the previous-sequence */ - if (!(cts = (CT *) mh_xcalloc((size_t) (mp->numsel + 1), - sizeof(*cts)))) - adios(EX_OSERR, NULL, "out of memory"); + cts = (CT *) mh_xcalloc((size_t) (mp->numsel + 1), + sizeof(*cts)); ctp = cts; for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { @@ -570,8 +568,7 @@ store_partial(CT ct) return NOTOK; } - if ((base = (CT *) calloc((size_t) (i + 1), sizeof(*base))) == NULL) - adios(EX_OSERR, NULL, "out of memory"); + base = (CT *) mh_xcalloc((size_t) (i + 1), sizeof(*base)); ctq = base; for (ctp = cts; *ctp; ctp++) {