mirror of
https://github.com/git/git.git
synced 2024-10-28 21:07:52 +01:00
Merge branch 'fn/maint-mkdtemp-compat'
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
This commit is contained in:
commit
f3604763ba
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue