Andrew John Hughes wrote:
I'm committing the patch which fixes a bug in System.getenv()
when an environment variable has an empty value.
Not part of your patch (code was there before) but:
String[] parts = pair.split("=");
Shouldn't this be "pair.split("=", 1)" instead? E.g. wha
I'm committing the patch which fixes a bug in System.getenv()
when an environment variable has an empty value.
Changelog:
2006-06-04 Andrew John Hughes <[EMAIL PROTECTED]>
* java/lang/System.java:
(getenv()): Handle cases where split only
returns an array of size 1.
--