Merge branch 'fn/maint-mkdtemp-compat' into maint

* fn/maint-mkdtemp-compat:
  Fix gitmkdtemp: correct test for mktemp() return value
maint
Junio C Hamano 2010-03-08 00:36:02 -08:00
commit 990169b9b1
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@

char *gitmkdtemp(char *template)
{
if (!mktemp(template) || mkdir(template, 0700))
if (!*mktemp(template) || mkdir(template, 0700))
return NULL;
return template;
}