summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorKarsten Blees <blees@dcon.de>2011-01-07 17:04:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 17:56:47 (GMT)
commit58aa3d2a69ded1f48a1c9c63176384d02925c9d6 (patch)
tree16865e3f4ebb47555c269da5988061c39e2f2e0f /compat
parent3e66e47b1b1baef859be79a12091fdbdd82492a8 (diff)
downloadgit-58aa3d2a69ded1f48a1c9c63176384d02925c9d6.zip
git-58aa3d2a69ded1f48a1c9c63176384d02925c9d6.tar.gz
git-58aa3d2a69ded1f48a1c9c63176384d02925c9d6.tar.bz2
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 1c0b153..6849815 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;