projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No error-checking for error-checking alloc functions
[mmh]
/
uip
/
scansbr.c
diff --git
a/uip/scansbr.c
b/uip/scansbr.c
index
ade3a28
..
d985a5c
100644
(file)
--- 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 *));
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 *));
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;
/* NULL-terminate array */
used_buf += ncomps;
*used_buf = NULL;