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