diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-16 09:25:59 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-16 09:25:59 +0000 |
| commit | e4f1a557fd6f5189c28cd6663b90f8f6c6c1b686 (patch) | |
| tree | 55cf5527b0186a806844bf63754fd6e27cebd45e /variable.c | |
| parent | aefad35e2c5ef6077a095b66e2d59602d36f83ef (diff) | |
| download | ruby-e4f1a557fd6f5189c28cd6663b90f8f6c6c1b686.tar.gz ruby-e4f1a557fd6f5189c28cd6663b90f8f6c6c1b686.tar.xz ruby-e4f1a557fd6f5189c28cd6663b90f8f6c6c1b686.zip | |
* st.c: primes should be primes.
* eval.c (is_defined): method defined? check should honor
protected too.
* eval.c (block_pass): should not pass tainted block, if $SAFE > 0.
* variable.c (rb_mod_remove_cvar): should pass the char*.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
| -rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 8b9dfaa1d..b44ea009e 100644 --- a/variable.c +++ b/variable.c @@ -1631,7 +1631,7 @@ rb_mod_remove_cvar(mod, name) VALUE val; if (!rb_is_class_id(id)) { - rb_name_error(id, "wrong class variable name %s", name); + rb_name_error(id, "wrong class variable name %s", rb_id2name(id)); } if (!OBJ_TAINTED(mod) && rb_safe_level() >= 4) rb_raise(rb_eSecurityError, "Insecure: can't remove class variable"); |
