X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..386656ec3d9a80184f380a77169dc0a16bad89d5:/sbr/readconfig.c diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 9cd128e3..eba6eece 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -4,9 +4,14 @@ * -- such as nmh profile, context file, or mhn.defaults. * * $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 struct procstr { char *procname; @@ -61,8 +66,7 @@ readconfig (struct node **npp, FILE *ib, char *file, int ctx) case FLD: case FLDPLUS: case FLDEOF: - if (!(np = (struct node *) malloc (sizeof(*np)))) - adios (NULL, "unable to allocate profile storage"); + np = (struct node *) mh_xmalloc (sizeof(*np)); *npp = np; *(npp = &np->n_next) = NULL; np->n_name = getcpy (name);