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 | |
| parent | Merge branch 'gb/maint-submodule-env' (diff) | |
| parent | Fix gitmkdtemp: correct test for mktemp() return value (diff) | |
| download | git-f3604763ba0355f628cf815cfaf4fec20d46e958.tar.gz git-f3604763ba0355f628cf815cfaf4fec20d46e958.zip | |
Merge branch 'fn/maint-mkdtemp-compat'
* fn/maint-mkdtemp-compat:
Fix gitmkdtemp: correct test for mktemp() return value
| -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; } |
