summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-07 20:47:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-07 20:47:17 (GMT)
commitf3604763ba0355f628cf815cfaf4fec20d46e958 (patch)
tree9dcc4926d685154ddb2f5d003618eb8e217433f7 /compat
parent9317dc4f051452a0e0f7a62a5531b16adf36b553 (diff)
parent1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff)
downloadgit-f3604763ba0355f628cf815cfaf4fec20d46e958.zip
git-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.gz
git-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.bz2
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 34d4b49..1136119 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;
}