Issue #1679 has been updated by Usaku NAKAMURA.

Category set to core

ISO C and POSIX say that the returned string may be overwritten by a subsequent call of getenv().
So, the behavior of rb_w32_getenv() is collect and the wrong point is rb_init_loadpath().
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1679

----------------------------------------
http://redmine.ruby-lang.org