diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-08 00:36:02 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-08 00:36:02 -0800 |
commit | 990169b9b19b2a4e837127c6b8678d6bdf44c609 (patch) | |
tree | 458e618e7e5bbd15b4f63e14246f4276ba703436 /compat | |
parent | bd08ecc487f3b515196cc4096094799a02de6ae3 (diff) | |
parent | 1f80c2afb0d826567a9a5a1c3ce76c28883e0e96 (diff) | |
download | git-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.c | 2 |
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; } |