]> diplodocus.org Git - nmh/blobdiff - uip/fmttest.c
Add FIXME for more documentation to showbuildenv.
[nmh] / uip / fmttest.c
index 712d7df2da4df57ca5356680a0792522308fa9bc..d6026b95db0b9f4871499d7ed75c74d5781646ca 100644 (file)
@@ -351,7 +351,7 @@ main (int argc, char **argv)
        if (trace) {
            struct trace_context *ctx;
 
-           ctx = mh_xmalloc(sizeof(*ctx));
+           NEW(ctx);
            ctx->num = -1;
            ctx->str = dummy;
            ctx->outbuf = getcpy(NULL);
@@ -420,8 +420,7 @@ process_addresses(struct format *fmt, struct msgs_array *addrs,
     for (i = 0; i < addrs->size; i++) {
        (q = &pq)->pq_next = NULL;
        while ((cp = getname(addrs->msgs[i]))) {
-           if ((p = (struct pqpair *) mh_xcalloc ((size_t) 1, sizeof(*p))) == NULL)
-               adios (NULL, "unable to allocate pqpair memory");
+           NEW0(p);
            if ((mp = getm(cp, NULL, 0, error, sizeof(error))) == NULL) {
                p->pq_text = getcpy(cp);
                p->pq_error = getcpy(error);