Skip to content

Commit

Permalink
Merge branch 'fn/maint-mkdtemp-compat' into maint
Browse files Browse the repository at this point in the history
* fn/maint-mkdtemp-compat:
  Fix gitmkdtemp: correct test for mktemp() return value
  • Loading branch information
Junio C Hamano committed Mar 8, 2010
2 parents bd08ecc + 1f80c2a commit 990169b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/mkdtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

0 comments on commit 990169b

Please sign in to comment.