Win32: patch Windows environment on startup
commitea1074ae06a36d7a456bc0571b105ee37e4347c4
authorKarsten Blees <blees@dcon.de>
Sun, 15 Jan 2012 01:35:26 +0000 (15 02:35 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 19:33:26 +0000 (15 20:33 +0100)
treec3b62bf2c9d1c9ad271764e160a149554a97e482
parent3f371bb824fb964b88b55da45c18043eed0c7b87
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