*/
#include <h/mh.h>
+#include <h/utils.h>
/*
* Foil search of users .mh_profile
* If path is given, create a minimal profile/context list
*/
if (path) {
- if (!(m_defs = (struct node *) malloc (sizeof(*np)))) {
- advise (NULL, "unable to allocate profile storage");
- return -1;
- }
+ m_defs = (struct node *) mh_xmalloc (sizeof(*np));
np = m_defs;
if (!(np->n_name = strdup ("Path"))) {