]> diplodocus.org Git - nmh/blobdiff - uip/picksbr.c
Replace NEW() then memset() of 0 with NEW0().
[nmh] / uip / picksbr.c
index 3c2107c27c0bdf2e0836e6dcd25c550026ea90c7..5ef4fc5826fbb613e3899994b14ea13ac2159517 100644 (file)
@@ -459,9 +459,7 @@ newnexus (int (*action)())
 {
     register struct nexus *p;
 
-    if ((p = (struct nexus *) mh_xcalloc ((size_t) 1, sizeof *p)) == NULL)
-       adios (NULL, "unable to allocate component storage");
-
+    NEW0(p);
     p->n_action = action;
     return p;
 }