X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0e7106da702d97e10f3bd24d8284a2ab86044ebd..386656ec3d9a80184f380a77169dc0a16bad89d5:/sbr/context_foil.c diff --git a/sbr/context_foil.c b/sbr/context_foil.c index d6c90c48..7eccd79f 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -10,6 +10,7 @@ */ #include +#include /* * Foil search of users .mh_profile @@ -45,10 +46,7 @@ context_foil (char *path) * 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"))) {