aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-08 00:36:02 -0800
committerJunio C Hamano <gitster@pobox.com>2010-03-08 00:36:02 -0800
commit990169b9b19b2a4e837127c6b8678d6bdf44c609 (patch)
tree458e618e7e5bbd15b4f63e14246f4276ba703436 /compat
parentbd08ecc487f3b515196cc4096094799a02de6ae3 (diff)
parent1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff)
downloadgit-990169b9b19b2a4e837127c6b8678d6bdf44c609.tar.gz
git-990169b9b19b2a4e837127c6b8678d6bdf44c609.tar.xz
Merge branch 'fn/maint-mkdtemp-compat' into maint
* 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 34d4b4981..113611959 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;
}