X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frmm.c;h=b25f083f34bd21bf9bbffeba2cc8695fd9a7dfab;hp=072097a7949b3f6781555f3175aaeabe953f6a90;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=a259594cc41e41bfbb90562d3977b8194d1446f5 diff --git a/uip/rmm.c b/uip/rmm.c index 072097a..b25f083 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -10,6 +10,7 @@ */ #include +#include /* * We allocate space for message names and ranges @@ -56,8 +57,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 */ while ((cp = *argp++)) {