mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_getenv): should return NULL if specified name
is empty. a patch from Heesob Park at [ruby-core:32650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
85bcd25877
commit
1fcb7a5ee0
3 changed files with 8 additions and 2 deletions
|
@ -96,6 +96,7 @@ class TestEnv < Test::Unit::TestCase
|
|||
assert_raise(ArgumentError) { ENV["foo\0bar"] }
|
||||
ENV[PATH_ENV] = ""
|
||||
assert_equal("", ENV[PATH_ENV])
|
||||
assert_nil(ENV[""])
|
||||
end
|
||||
|
||||
def test_fetch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue