get_windows_home_directory might point to wrong buffer
commitfa42dcae0c53876f51cb820f2b668b4ad3821178
authorSven Strickroth <email@cs-ware.de>
Fri, 22 Apr 2016 12:12:07 +0000 (22 14:12 +0200)
committerSven Strickroth <email@cs-ware.de>
Fri, 22 Apr 2016 12:12:07 +0000 (22 14:12 +0200)
tree0eddd0ac5420f1df008e629464eff6dfa7b77f85
parent7d4a882b6ac9cc18d103bcdd046a7f65e023568a
get_windows_home_directory might point to wrong buffer

If %HOME% is set and build_libgit_environment() is called, the static buffer might point to an invalid buffer.

Regression of commit 25fc2b0b93032863356ba7b90b776fdb3bcef07b.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
ext/gitdll/gitdll.c