Skip to content

Commit

Permalink
Win32: fix potential multi-threading issue
Browse files Browse the repository at this point in the history
...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]>
  • Loading branch information
kblees authored and gitster committed Jun 16, 2014
1 parent 3e66e47 commit 58aa3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/mingw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58aa3d2

Please sign in to comment.