Skip to content

Commit 58aa3d2

Browse files
kbleesgitster
authored andcommitted
Win32: fix potential multi-threading issue
...by removing a static buffer in do_stat_internal. Signed-off-by: Karsten Blees <[email protected]> Signed-off-by: Erik Faye-Lund <[email protected]> Signed-off-by: Stepan Kasal <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3e66e47 commit 58aa3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ static int do_lstat(int follow, const char *file_name, struct stat *buf)
441441
static int do_stat_internal(int follow, const char *file_name, struct stat *buf)
442442
{
443443
int namelen;
444-
static char alt_name[PATH_MAX];
444+
char alt_name[PATH_MAX];
445445

446446
if (!do_lstat(follow, file_name, buf))
447447
return 0;

0 commit comments

Comments
 (0)