Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fn/maint-mkdtemp-compat' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 8 Mar 2010 08:36:02 +0000
(
00:36
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 8 Mar 2010 08:36:02 +0000
(
00:36
-0800)
* fn/maint-mkdtemp-compat:
Fix gitmkdtemp: correct test for mktemp() return value
compat/mkdtemp.c
patch
|
blob
|
history
raw
(from parent 1:
bd08ecc
)
diff --git
a/compat/mkdtemp.c
b/compat/mkdtemp.c
index 34d4b49818b0896b9db19b2b1387f142cbbbd42b..11361195925c674423309d40f343c88f58b7bc1e 100644
(file)
--- a/
compat/mkdtemp.c
+++ b/
compat/mkdtemp.c
@@
-2,7
+2,7
@@
char *gitmkdtemp(char *template)
{
- if (!mktemp(template) || mkdir(template, 0700))
+ if (!
*
mktemp(template) || mkdir(template, 0700))
return NULL;
return template;
}