No error-checking for error-checking alloc functions
[mmh] / uip / burst.c
index 37dc9b1..04e5450 100644 (file)
@@ -7,6 +7,7 @@
 */
 
 #include <h/mh.h>
+#include <h/utils.h>
 #include <unistd.h>
 #include <sys/stat.h>
 #include <locale.h>
@@ -117,9 +118,7 @@ main(int argc, char **argv)
        seq_setprev(mp);  /* set the previous-sequence */
 
        smsgs = (struct smsg *)
-               calloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs));
-       if (smsgs == NULL)
-               adios(EX_OSERR, NULL, "unable to allocate burst storage");
+               mh_xcalloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs));
 
        hi = mp->hghmsg + 1;