summaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 13:07:28 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 13:07:28 +0000
commitbf9c4580847ea9a1ba32723062c6610752a90263 (patch)
treef63a06c591b4d3c473251771f0a9c9b8630ee80b /variable.c
parentc11ce1acc1fc6ab2587ca914fa343884fd554873 (diff)
downloadruby-bf9c4580847ea9a1ba32723062c6610752a90263.tar.gz
ruby-bf9c4580847ea9a1ba32723062c6610752a90263.tar.xz
ruby-bf9c4580847ea9a1ba32723062c6610752a90263.zip
* variable.c (rb_mod_remove_cvar): fix r19711.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index 95f572baf..056a27128 100644
--- a/variable.c
+++ b/variable.c
@@ -1909,7 +1909,7 @@ rb_mod_class_variables(VALUE obj)
* @@var = 99
* puts @@var
* remove_class_variable(:@@var)
- * puts(defined? @@var)
+ * p(defined? @@var)
* end
*
* <em>produces:</em>
@@ -1922,7 +1922,7 @@ VALUE
rb_mod_remove_cvar(VALUE mod, VALUE 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)) {
rb_name_error(id, "wrong class variable name %s", rb_id2name(id));