]> diplodocus.org Git - nmh/blobdiff - sbr/context_foil.c
Escape literal leading full stop in man/new.man.
[nmh] / sbr / context_foil.c
index 12dab45fff37c9c0a1c0aa6f7a012593a4a1c766..e8407066d981420257bd1187150bfbddc4783fe2 100644 (file)
@@ -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;