From 7f1e4ea14d706c0821969fda88e028352dac2189 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 13 Feb 2012 03:16:50 +0000 Subject: pm_make_tmpfile_fd: fix improper handling when unable to get memory to construct file name git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1651 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pmfileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pmfileio.c') 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 { -- cgit 1.4.1