]> diplodocus.org Git - nmh/blobdiff - uip/mhn.c
configure.ac: Enable assert(3) by default.
[nmh] / uip / mhn.c
index a3f10305b74d9e1367b2c97503e94a3ab809d15d..dd3cf8714987843e7b1a3a17d1b5f74f4b4b3c77 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -1,6 +1,4 @@
-
-/*
- * mhn.c -- display, list, cache, or store the contents of MIME messages
+/* mhn.c -- display, list, cache, or store the contents of MIME messages
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -370,7 +368,7 @@ do_cache:
     /*
      * Cache the current directory before we do any chdirs()'s.
      */
-    cwd = add(pwd(), NULL);
+    cwd = mh_xstrdup(pwd());
 
     if (!context_find ("path"))
        free (path ("./", TFOLDER));