summaryrefslogtreecommitdiff
path: root/compat/mkdtemp.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 12:47:17 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 12:47:17 -0800
commitf3604763ba0355f628cf815cfaf4fec20d46e958 (patch)
tree9dcc4926d685154ddb2f5d003618eb8e217433f7 /compat/mkdtemp.c
parentMerge branch 'gb/maint-submodule-env' (diff)
parentFix gitmkdtemp: correct test for mktemp() return value (diff)
downloadtgif-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.xz
Merge branch 'fn/maint-mkdtemp-compat'
* fn/maint-mkdtemp-compat: Fix gitmkdtemp: correct test for mktemp() return value
Diffstat (limited to 'compat/mkdtemp.c')
-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;
}