mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
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>
This commit is contained in:
parent
c1641da74d
commit
82d8bd39d9
|
@ -475,7 +475,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;
|
||||
|
|
Loading…
Reference in a new issue