about summary refs log tree commit diff
path: root/lib/pmfileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pmfileio.c')
-rw-r--r--lib/pmfileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pmfileio.c b/lib/pmfileio.c
index 1d7d2643..ab1fcd32 100644
--- a/lib/pmfileio.c
+++ b/lib/pmfileio.c
@@ -265,7 +265,7 @@ pm_make_tmpfile_fd(int *         const fdP,
     pm_asprintf(&filenameTemplate, "%s%s%s%s", 
                 tmpdir, dirseparator, pm_progname, "_XXXXXX");
 
-    if (filenameTemplate == NULL)
+    if (filenameTemplate == pm_strsol)
         pm_asprintf(&error,
                     "Unable to allocate storage for temporary file name");
     else {