Win32: fix potential multi-threading issue
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 17:04:16 +0000 (18:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jun 2014 17:56:47 +0000 (10:56 -0700)
...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>
compat/mingw.c
index 1c0b1531b83250caf4714d77e105209b1e44aeb8..6849815b39a9a4716e1247178036621b18d1fdca 100644 (file)
@@ -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;