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
/
mhl.c
diff --git
a/uip/mhl.c
b/uip/mhl.c
index
f3f7477
..
6989c70
100644
(file)
--- a/
uip/mhl.c
+++ b/
uip/mhl.c
@@
-780,9
+780,7
@@
mcomp_format(struct mcomp *c1, struct mcomp *c2)
(q = &pq)->pq_next = NULL;
while ((cp = getname(ap))) {
(q = &pq)->pq_next = NULL;
while ((cp = getname(ap))) {
- if ((p = (struct pqpair *)
- mh_xcalloc((size_t) 1, sizeof(*p))) == NULL)
- adios(EX_OSERR, NULL, "unable to allocate pqpair memory");
+ p = (struct pqpair *) mh_xcalloc((size_t) 1, sizeof(*p));
if ((mp = getm(cp, NULL, 0, AD_NAME, error)) == NULL) {
p->pq_text = getcpy(cp);
if ((mp = getm(cp, NULL, 0, AD_NAME, error)) == NULL) {
p->pq_text = getcpy(cp);
@@
-829,8
+827,7
@@
add_queue(struct mcomp **head, struct mcomp **tail, char *name,
{
struct mcomp *c1;
{
struct mcomp *c1;
- if ((c1 = (struct mcomp *) mh_xcalloc((size_t) 1, sizeof(*c1))) == NULL)
- adios(EX_OSERR, NULL, "unable to allocate comp memory");
+ c1 = (struct mcomp *) mh_xcalloc((size_t) 1, sizeof(*c1));
c1->c_flags = flags & ~INIT;
if ((c1->c_name = name ? getcpy(name) : NULL))
c1->c_flags = flags & ~INIT;
if ((c1->c_name = name ? getcpy(name) : NULL))