X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhn.c;h=27ee05b461531d9ea877a1fd398d5d90047bda62;hp=c6d5c777ae98242e5911859809f98d90b436a0fc;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/uip/mhn.c b/uip/mhn.c index c6d5c77..27ee05b 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -131,8 +131,6 @@ static struct swit switches[] = { }; -extern int errno; - /* mhparse.c */ extern int checksw; extern char *tmp; /* directory to place temp files */ @@ -244,8 +242,7 @@ main (int argc, char **argv) */ nummsgs = 0; maxmsgs = MAXMSGS; - if (!(msgs = (char **) malloc ((size_t) (maxmsgs * sizeof(*msgs))))) - adios (NULL, "unable to allocate storage"); + msgs = (char **) mh_xmalloc ((size_t) (maxmsgs * sizeof(*msgs))); /* * Parse arguments