X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_foil.c;h=7eccd79fd755136528c193301459cfd590c38fad;hp=d6c90c48b3ba89814ef22f217f2d9d74997b288e;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/sbr/context_foil.c b/sbr/context_foil.c index d6c90c4..7eccd79 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"))) {