Win32: patch Windows environment on startup
commit69baa621a32a8da06565ca40917fff80d4a50d97
authorKarsten Blees <blees@dcon.de>
Sun, 15 Jan 2012 01:35:26 +0000 (15 02:35 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 30 Mar 2012 18:44:01 +0000 (30 13:44 -0500)
tree399c9aa25943f39a7f2dadf57b30be162fdf23ac
parentb6c976d8da991d16ba31d3b0d9eda10c4ae475a9
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