X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fcontext_foil.c;h=12dab45fff37c9c0a1c0aa6f7a012593a4a1c766;hb=128545e06224233b7e91fc4c83f8830252fe16c9;hp=d6c90c48b3ba89814ef22f217f2d9d74997b288e;hpb=0e7106da702d97e10f3bd24d8284a2ab86044ebd;p=mmh diff --git a/sbr/context_foil.c b/sbr/context_foil.c index d6c90c4..12dab45 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -2,14 +2,13 @@ /* * context_foil.c -- foil search of profile and context * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include +#include /* * Foil search of users .mh_profile @@ -45,10 +44,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"))) {