Win32: patch Windows environment on startup
commit78a40cbaae1d7d4edbafb46e602a9b620c44317a
authorKarsten Blees <blees@dcon.de>
Sun, 15 Jan 2012 01:35:26 +0000 (15 02:35 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Apr 2012 21:49:47 +0000 (6 16:49 -0500)
tree5ff87ca4aacf76998648fe2e384d87bd8d503e0f
parent255e00b146502151552840afd296a982dd4238b6
Win32: patch Windows environment on startup

Fix Windows specific environment settings on startup rather than checking
for special values on every getenv call.

As a side effect, this makes the patched environment (i.e. with properly
initialized TMPDIR and TERM) available to child processes.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c