Skip to content

Commit 990169b

Browse files
committed
Merge branch 'fn/maint-mkdtemp-compat' into maint
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
2 parents bd08ecc + 1f80c2a commit 990169b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mkdtemp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
char *gitmkdtemp(char *template)
44
{
5-
if (!mktemp(template) || mkdir(template, 0700))
5+
if (!*mktemp(template) || mkdir(template, 0700))
66
return NULL;
77
return template;
88
}

0 commit comments

Comments
 (0)