diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-08-13 12:28:56 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-08-14 13:38:36 +0100 |
commit | 53d3d71d3d36be17b1bcad5a173256917b4694fb (patch) | |
tree | fc48508788994d54b7f9d7fdc839591d47e62a23 /base/gp_unifs.c | |
parent | a494568466eb5f7a2e1643e644ae3214f75d9ffa (diff) | |
download | ghostpdl-53d3d71d3d36be17b1bcad5a173256917b4694fb.tar.gz |
Coverity ID 372309
A return value of -1 from mkstemp ot mkstemp64 is still an error, we
can't pass that on to fdopen(). Abort with an error message instead.
Diffstat (limited to 'base/gp_unifs.c')
-rw-r--r-- | base/gp_unifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gp_unifs.c b/base/gp_unifs.c index a007ddce8..3da81444c 100644 --- a/base/gp_unifs.c +++ b/base/gp_unifs.c @@ -112,7 +112,7 @@ gp_open_scratch_file_impl(const gs_memory_t *mem, # else file = mkstemp(fname); # endif - if (file < -1) { + if (file < 0) { emprintf1(mem, "**** Could not open temporary file %s\n", ofname); return NULL; } |