X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/49b128f0607611e485a06c21dcb48e4144b63d5e..cffe37acfaf6896d52860e77585b5000565ec3f7:/uip/install-mh.c diff --git a/uip/install-mh.c b/uip/install-mh.c index 93f52f5a..ce766380 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -180,10 +180,10 @@ 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"); - np->n_field = getcpy (pathname); + NEW(np); + m_defs = np; + np->n_name = mh_xstrdup("Path"); + np->n_field = mh_xstrdup(pathname); np->n_context = 0; np->n_next = NULL; @@ -225,7 +225,7 @@ query: /* Initialize the saved nmh version. The Path profile entry was added above, that's all this needs. */ - (void) nmh_version_changed (); + (void) nmh_version_changed (0); done (0); return 1;