diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-07 12:47:17 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-07 12:47:17 -0800 |
commit | f3604763ba0355f628cf815cfaf4fec20d46e958 (patch) | |
tree | 9dcc4926d685154ddb2f5d003618eb8e217433f7 /compat | |
parent | 9317dc4f051452a0e0f7a62a5531b16adf36b553 (diff) | |
parent | 1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff) | |
download | git-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.gz |
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.c | 2 |
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; } |