X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1aa8f3e11e6d83ee4806abaa132ab9466f02ca5f..bf982b40ca8495e7a8d14513aedcc2fe15f09a93:/uip/mhlsbr.c diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 8d8fea17..28d48947 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -778,7 +778,7 @@ evalvar (struct mcomp *c1) return 1; } - args = (struct arglist *) calloc((size_t) 1, sizeof(struct arglist)); + args = (struct arglist *) mh_xcalloc ((size_t) 1, sizeof(struct arglist)); if (arglist_tail) arglist_tail->a_next = args; @@ -1184,7 +1184,7 @@ mcomp_format (struct mcomp *c1, struct mcomp *c2) (q = &pq)->pq_next = NULL; while ((cp = getname (ap))) { - if ((p = (struct pqpair *) calloc ((size_t) 1, sizeof(*p))) == NULL) + if ((p = (struct pqpair *) mh_xcalloc ((size_t) 1, sizeof(*p))) == NULL) adios (NULL, "unable to allocate pqpair memory"); else { if ((mp = getm (cp, NULL, 0, error, sizeof(error))) == NULL) { @@ -1240,7 +1240,7 @@ add_queue (struct mcomp **head, struct mcomp **tail, char *name, char *text, int { struct mcomp *c1; - if ((c1 = (struct mcomp *) calloc ((size_t) 1, sizeof(*c1))) == NULL) + if ((c1 = (struct mcomp *) mh_xcalloc ((size_t) 1, sizeof(*c1))) == NULL) adios (NULL, "unable to allocate comp memory"); else { c1->c_flags = flags & ~INIT;