No error-checking for error-checking alloc functions
[mmh] / uip / scansbr.c
index ade3a28..d985a5c 100644 (file)
@@ -100,12 +100,8 @@ scan(FILE *inb, int innum, int outnum, char *fmtstr, int width, int curflg,
 
                nxtbuf = compbuffers = (char **) mh_xcalloc((size_t) ncomps,
                                sizeof(char *));
-               if (!nxtbuf)
-                       adios(EX_OSERR, NULL, "unable to allocate component buffers");
                used_buf = (struct comp **) mh_xcalloc((size_t) (ncomps+1),
                                sizeof(struct comp *));
-               if (!used_buf)
-                       adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
                /* NULL-terminate array */
                used_buf += ncomps;
                *used_buf = NULL;