mirror of
https://github.com/git/git.git
synced 2026-04-12 01:40:10 +02:00
Merge branch 'fn/maint-mkdtemp-compat' into maint
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
char *gitmkdtemp(char *template)
|
||||
{
|
||||
if (!mktemp(template) || mkdir(template, 0700))
|
||||
if (!*mktemp(template) || mkdir(template, 0700))
|
||||
return NULL;
|
||||
return template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user