diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 21:41:24 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 21:41:24 +0000 |
commit | fc7922d334ba5dc48336e39ebd8686752d9bd720 (patch) | |
tree | ddc577a5945b28549555cd30f4999e412e183f68 /ext/openssl | |
parent | 1845b36b50f75bfdedabdc2b0787e0e9c75c8588 (diff) |
* ext/openssl/ossl_config.c (ossl_config_set_section): do not
initialize aggregations with dynamic values. [ruby-talk:259306]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@13026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/ossl_config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 1844022506..64998bb86a 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -245,7 +245,10 @@ set_conf_section_i(VALUE i, VALUE *arg) static VALUE ossl_config_set_section(VALUE self, VALUE section, VALUE hash) { - VALUE arg[2] = { self, section }; + VALUE arg[2]; + + arg[0] = self; + arg[1] = section; rb_iterate(rb_each, hash, set_conf_section_i, (VALUE)arg); return hash; } |