]> git.marmaro.de Git - mmh/blobdiff - uip/scansbr.c
No error-checking for error-checking alloc functions
[mmh] / uip / scansbr.c
index ade3a28f1eb4351a081cc4f0e66a1600831aa4d0..d985a5cab544ddf045450a24640cf3018ef78b63 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;