X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5afa7072e3fe7fc42287e2149e1c23b363700795..1524cb8c0b86a854149d7859d6a2503d61dbaa36:/uip/install-mh.c diff --git a/uip/install-mh.c b/uip/install-mh.c index 34aed950..ec847fb4 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -9,6 +9,7 @@ */ #include /* mh internals */ +#include #include /* structure for getpwuid() results */ static struct swit switches[] = { @@ -180,8 +181,7 @@ query: /* * Add some initial elements to the profile/context list */ - if (!(m_defs = (struct node *) malloc (sizeof *np))) - adios (NULL, "unable to allocate profile storage"); + m_defs = (struct node *) mh_xmalloc (sizeof *np); np = m_defs; np->n_name = getcpy ("Path"); np->n_field = getcpy (pathname);