X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..cf57870921b26703aad420c6741c524b33736ff1:/sbr/context_foil.c diff --git a/sbr/context_foil.c b/sbr/context_foil.c index 12dab45f..e8407066 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -18,7 +18,7 @@ int context_foil (char *path) { - register struct node *np; + struct node *np; /* In fact, nobody examines defpath in code paths where * it's been set by us -- the uses in the source tree are: @@ -44,9 +44,8 @@ context_foil (char *path) * If path is given, create a minimal profile/context list */ if (path) { - m_defs = (struct node *) mh_xmalloc (sizeof(*np)); - - np = m_defs; + NEW(np); + m_defs = np; if (!(np->n_name = strdup ("Path"))) { advise (NULL, "strdup failed"); return -1;