-/*
- * 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
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