X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Finstall-mh.c;h=ec847fb4548e481bb7f9e43d40b4ce800cffbd0f;hp=34aed9505cdc4ff01ab6245ea0bfa5ec474bc834;hb=d2da15ecabb03fb2de72863abdf5f21e52fdf329;hpb=5afa7072e3fe7fc42287e2149e1c23b363700795 diff --git a/uip/install-mh.c b/uip/install-mh.c index 34aed95..ec847fb 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);