diff options
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dviljk/dvi2xx.c | 2 |
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; } |