diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-20 06:22:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-20 06:22:54 +0000 |
commit | 7f1ad02e68f60b0a91f982acd09cf460247ac5f6 (patch) | |
tree | 0d5b2bdd92af8be3678fd4dfc89b718421e2c2fb | |
parent | 5d3fc4f90e2d91f085f188ee0f826761c3e15834 (diff) | |
download | ruby-7f1ad02e68f60b0a91f982acd09cf460247ac5f6.tar.gz ruby-7f1ad02e68f60b0a91f982acd09cf460247ac5f6.tar.xz ruby-7f1ad02e68f60b0a91f982acd09cf460247ac5f6.zip |
* ext/openssl/ossl_config.c (ossl_config_set_section): do not
initialize aggregations with dynamic values. [ruby-talk:259306]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/openssl/ossl_config.c | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Jul 20 15:22:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/openssl/ossl_config.c (ossl_config_set_section): do not + initialize aggregations with dynamic values. [ruby-talk:259306] + Fri Jul 20 10:39:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (stmt, mlhs_node, lhs, arg, var_ref): return dummy diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 3dfe7f361..cc8e32402 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_block_call(hash, rb_intern("each"), 0, 0, set_conf_section_i, (VALUE)arg); return hash; } |