1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* variable.c (rb_mod_remove_cvar): fix r19711.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-10-09 13:07:28 +00:00
parent 525b4535ca
commit ae4bc66b64
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Oct 9 22:04:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
* variable.c (rb_mod_remove_cvar): fix r19711.
Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp> Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
* ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized * ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized

View file

@ -1909,7 +1909,7 @@ rb_mod_class_variables(VALUE obj)
* @@var = 99 * @@var = 99
* puts @@var * puts @@var
* remove_class_variable(:@@var) * remove_class_variable(:@@var)
* puts(defined? @@var) * p(defined? @@var)
* end * end
* *
* <em>produces:</em> * <em>produces:</em>
@ -1922,7 +1922,7 @@ VALUE
rb_mod_remove_cvar(VALUE mod, VALUE name) rb_mod_remove_cvar(VALUE mod, VALUE name)
{ {
const ID id = rb_to_id(name); const ID id = rb_to_id(name);
st_data_t val, n; st_data_t val, n = id;
if (!rb_is_class_id(id)) { if (!rb_is_class_id(id)) {
rb_name_error(id, "wrong class variable name %s", rb_id2name(id)); rb_name_error(id, "wrong class variable name %s", rb_id2name(id));