Browse Source

Merge branch 'fn/maint-mkdtemp-compat'

* fn/maint-mkdtemp-compat:
  Fix gitmkdtemp: correct test for mktemp() return value
maint
Junio C Hamano 15 years ago
parent
commit
f3604763ba
  1. 2
      compat/mkdtemp.c

2
compat/mkdtemp.c

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@

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

Loading…
Cancel
Save