X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhn.c;h=27ee05b461531d9ea877a1fd398d5d90047bda62;hp=55f06c4c0a8a20a1d29cb6b720e3aa53ed102e3b;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/mhn.c b/uip/mhn.c index 55f06c4..27ee05b 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -242,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