]> diplodocus.org Git - nmh/blobdiff - uip/install-mh.c
Oops, should have offset file in showbuildenv rather than cat.
[nmh] / uip / install-mh.c
index 6b8f444..ea4e876 100644 (file)
@@ -180,9 +180,9 @@ query:
     /*
      * Add some initial elements to the profile/context list
      */
-    m_defs = (struct node *) mh_xmalloc (sizeof *np);
-    np = m_defs;
-    np->n_name = getcpy ("Path");
+    NEW(np);
+    m_defs = np;
+    np->n_name = mh_xstrdup("Path");
     np->n_field = getcpy (pathname);
     np->n_context = 0;
     np->n_next = NULL;