summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-08 09:36:02 +0100
committerJunio C Hamano <gitster@pobox.com>2010-03-08 09:36:02 +0100
commit990169b9b19b2a4e837127c6b8678d6bdf44c609 (patch)
tree458e618e7e5bbd15b4f63e14246f4276ba703436
parentMerge branch 'gb/maint-submodule-env' into maint (diff)
parentFix gitmkdtemp: correct test for mktemp() return value (diff)
downloadgit-990169b9b19b2a4e837127c6b8678d6bdf44c609.tar.xz
git-990169b9b19b2a4e837127c6b8678d6bdf44c609.zip
Merge branch 'fn/maint-mkdtemp-compat' into maint
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
-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;
}