]> diplodocus.org Git - nmh/blobdiff - sbr/m_mktemp.c
Added warning about when post(1) can't refile(1) a draft.
[nmh] / sbr / m_mktemp.c
index 6bfa705f405f1d3e7b987e3a834b3420a43166ef..2a10ed8cf0826cb27a2e9b9b91909a01f3b619a8 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * m_mktemp.c -- Construct a temporary file.
+/* m_mktemp.c -- Construct a temporary file.
  *
  * This code is Copyright (c) 2010, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -155,10 +154,9 @@ m_mktemps(
 
     if (suffix == NULL) {
         if ((tmpfil = m_mktemp2(NULL, pfx_in, fd_ret, fp_ret))) {
-            return add(tmpfil, NULL);
-        } else {
-            return NULL;
+            return mh_xstrdup(tmpfil);
         }
+        return NULL;
     }
 
 #if HAVE_MKSTEMPS