diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-28 18:12:15 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-28 18:12:15 +0000 |
commit | 5f7992aa35a51d172db304307785bda91f24070d (patch) | |
tree | ec51ab615129cd1001be8ba8957fe8075cfbf7c8 /class.c | |
parent | 65564041feb853d09486f6da2a07fb95a23ece19 (diff) |
* class.c (rb_singleton_class_clone): Qnil must be used for a null
class reference when we use NIL_P() to check class reference
validity. The bug was exposed by the spec test of Sequel.
* eval.c (ruby_init): Use NEW_CREF().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ rb_singleton_class_clone(obj) data.klass = obj; break; default: - data.klass = 0; + data.klass = Qnil; break; } |