Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-08 11:36:02 +0300
committerJunio C Hamano <gitster@pobox.com>2010-03-08 11:36:02 +0300
commit990169b9b19b2a4e837127c6b8678d6bdf44c609 (patch)
tree458e618e7e5bbd15b4f63e14246f4276ba703436 /compat
parentbd08ecc487f3b515196cc4096094799a02de6ae3 (diff)
parent1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff)
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 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;
}