summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-07 12:47:17 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-07 12:47:17 -0800
commitf3604763ba0355f628cf815cfaf4fec20d46e958 (patch)
tree9dcc4926d685154ddb2f5d003618eb8e217433f7 /compat
parent9317dc4f051452a0e0f7a62a5531b16adf36b553 (diff)
parent1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff)
downloadgit-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.gz
Merge branch 'fn/maint-mkdtemp-compat'
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
Diffstat (limited to 'compat')
-rw-r--r--compat/mkdtemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mkdtemp.c b/compat/mkdtemp.c
index 34d4b49818..1136119592 100644
--- 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;
}