X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fscansbr.c;h=d985a5cab544ddf045450a24640cf3018ef78b63;hp=ade3a28f1eb4351a081cc4f0e66a1600831aa4d0;hb=6e7d34c614291079de750ceda1d4f5ec537beb81;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8 diff --git a/uip/scansbr.c b/uip/scansbr.c index ade3a28..d985a5c 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -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;