Win32: patch Windows environment on startup
commite92cda2234d42e19970eb03f97064d8c1a7f0070
authorKarsten Blees <blees@dcon.de>
Sun, 15 Jan 2012 01:35:26 +0000 (15 02:35 +0100)
committerKarsten Blees <blees@dcon.de>
Sat, 4 Feb 2012 20:55:54 +0000 (4 21:55 +0100)
treefc3f5f6a88538be6b1f7047d5fff2dea8d058343
parent857fbc9375a112b7d3b3aff5882b9ac984995c18
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