]> diplodocus.org Git - nmh/blobdiff - config/config.c
Removed addition of whomproc to the vec array in whomfile()
[nmh] / config / config.c
index 02265c0a6befb8457041cec19a3f4f7d93162cef..d29f8a2ec5d2791af8910cce204d3f97249c8fcd 100644 (file)
@@ -68,8 +68,13 @@ try_it:
 
        default: 
            /* Check nmh Mail directory */
-           if (access ((cp = m_mailpath (file)), R_OK) != NOTOK)
+           if (access ((cp = m_mailpath (file)), R_OK) != NOTOK) {
+               /* Will leak because caller doesn't know cp was
+                  dynamically allocated. */
                return cp;
+           } else {
+               free (cp);
+           }
     }
 
     /* Check nmh `etc' directory */
@@ -201,13 +206,6 @@ char *formatproc = NULL;
 
 char *incproc = nmhbindir (/inc);
 
-/*
- * When a user runs an nmh program for the first time, this program
- * is called to create his nmh profile, and mail directory.
- */
-
-char *installproc = nmhlibdir (/install-mh);
-
 /*
  * This is the default program invoked by a "list" response
  * at the "What now?" prompt.  It is also used by the draft