X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhpath.c;h=5084b030a8493a6c346fef9ea8f2cd0aa2817bb3;hp=d3dcc675b5a250423b1f6e6e025c97f5c2b905dc;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/mhpath.c b/uip/mhpath.c index d3dcc67..5084b03 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -10,6 +10,7 @@ */ #include +#include static struct swit switches[] = { #define VERSIONSW 0 @@ -52,8 +53,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