summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorKarsten Blees <blees@dcon.de>2011-01-07 18:04:16 +0100
committerJunio C Hamano <gitster@pobox.com>2014-06-16 10:56:47 -0700
commit58aa3d2a69ded1f48a1c9c63176384d02925c9d6 (patch)
tree16865e3f4ebb47555c269da5988061c39e2f2e0f /compat
parent3e66e47b1b1baef859be79a12091fdbdd82492a8 (diff)
downloadgit-58aa3d2a69ded1f48a1c9c63176384d02925c9d6.tar.gz
Win32: fix potential multi-threading issue
...by removing a static buffer in do_stat_internal. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Stepan Kasal <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index 1c0b1531b8..6849815b39 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -441,7 +441,7 @@ static int do_lstat(int follow, const char *file_name, struct stat *buf)
static int do_stat_internal(int follow, const char *file_name, struct stat *buf)
{
int namelen;
- static char alt_name[PATH_MAX];
+ char alt_name[PATH_MAX];
if (!do_lstat(follow, file_name, buf))
return 0;