summaryrefslogtreecommitdiff
path: root/base/gp_unifs.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/gp_unifs.c')
-rw-r--r--base/gp_unifs.c2
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;
}