]> diplodocus.org Git - nmh/blobdiff - uip/install-mh.c
Rename local enum to avoid clashing with NEW() macro.
[nmh] / uip / install-mh.c
index b32711596aac438d1ce4f267e65e60e74fc33ca5..a79793f5a36ce613474e8fdcbd75ee172b457254 100644 (file)
@@ -180,8 +180,8 @@ query:
     /*
      * Add some initial elements to the profile/context list
      */
-    m_defs = (struct node *) mh_xmalloc (sizeof *np);
-    np = m_defs;
+    NEW(np);
+    m_defs = np;
     np->n_name = getcpy ("Path");
     np->n_field = getcpy (pathname);
     np->n_context = 0;
@@ -223,6 +223,10 @@ query:
     puts ("\nPlease see the nmh(7) man page for an introduction to nmh.\n");
     print_intro (stdout, FALSE);
 
+    /* Initialize the saved nmh version.  The Path profile entry was added
+       above, that's all this needs. */
+    (void) nmh_version_changed (0);
+
     done (0);
     return 1;
 }