diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 09:16:25 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 09:16:25 +0000 |
| commit | f2c2fb5ac4929395885ae349231de49d62e2fde4 (patch) | |
| tree | 62abd8947818da9f117b0f2fe552b8b6f6c43a33 /hash.c | |
| parent | f1f3e2e0d1b224529132a5ac30562925e251a75d (diff) | |
| download | ruby-f2c2fb5ac4929395885ae349231de49d62e2fde4.tar.gz ruby-f2c2fb5ac4929395885ae349231de49d62e2fde4.tar.xz ruby-f2c2fb5ac4929395885ae349231de49d62e2fde4.zip | |
* eval.c (method_inspect): should not dump core for unbound
singleton methods.
* object.c (rb_mod_to_s): better description.
* hash.c (env_select): should path the assoc list.
* process.c (rb_syswait): thread kludge; should be fixed to
support native thread.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1327,10 +1327,10 @@ env_select(argc, argv) while (*env) { char *s = strchr(*env, '='); if (s) { - VALUE str = rb_tainted_str_new(*env, s-*env); - - if (RTEST(rb_yield(str))) { - rb_ary_push(result, str); + VALUE assoc = rb_assoc_new(rb_tainted_str_new(*env, s-*env), + rb_tainted_str_new2(s+1)); + if (RTEST(rb_yield(assoc))) { + rb_ary_push(result, assoc); } } env++; |
