summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Karsten Blees <blees@dcon.de>2011-01-07 18:04:16 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-16 10:56:47 -0700
commit58aa3d2a69ded1f48a1c9c63176384d02925c9d6 (patch)
tree16865e3f4ebb47555c269da5988061c39e2f2e0f
parentWin32: simplify internal mingw_spawn* APIs (diff)
downloadtgif-58aa3d2a69ded1f48a1c9c63176384d02925c9d6.tar.xz
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>
-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;