Win32: patch Windows environment on startup
commit4b443977d013842d922dafbf97d3727b718ffb73
authorKarsten Blees <blees@dcon.de>
Sun, 15 Jan 2012 01:35:26 +0000 (15 02:35 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 11 May 2012 22:50:04 +0000 (11 17:50 -0500)
treed3c16154b8e84b2af834fee8f1a74cf86982485e
parent6f74416223e0084dcc1da6403121dc98c7a8fbc1
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