summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorJoachim Schrod <jschrod@acm.org>2008-02-17 23:36:52 +0000
committerJoachim Schrod <jschrod@acm.org>2008-02-17 23:36:52 +0000
commit5d624e53212471f83b51715c482c4032396825ba (patch)
tree47713f2365210180039c02ae686396dae83b3a47 /Build/source
parentabf3c3f61f496ff60204090cf07d6c81ce683279 (diff)
On Solaris, mktemp() will return an empty string on failure, not NULL.
On Linux, this might be the same, the man pages are unclear. Play save and check everything. git-svn-id: svn://tug.org/texlive/trunk@6664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/dviljk/dvi2xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c
index 3e916042374..5ef945d8342 100644
--- a/Build/source/texk/dviljk/dvi2xx.c
+++ b/Build/source/texk/dviljk/dvi2xx.c
@@ -3923,7 +3923,7 @@ char *str;
#endif
char * mkdtemp ( char * template )
{
- if ( mktemp(template) == NULL ) {
+ if ( mktemp(template) == NULL || template[0] == '\0' ) {
if ( errno == 0 ) errno = EINVAL; /* if it's tmpnam() */
return NULL;
}