X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6c42153ad9362cc676ea66563bf400d7511b3b68..5cd118faad19dea7a13c2f11f1d078a2fd3cfce4:/sbr/readconfig.c diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 9e0382ef..eba6eece 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -11,6 +11,7 @@ */ #include +#include struct procstr { char *procname; @@ -65,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);