From 2a23c281a1d7d61b866cb01867dbe5ebff1e2263 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 14 Sep 2006 07:36:53 +0000 Subject: * string.c (rb_str_intern): allow zero length symbols. [ruby-core:08861] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index be10152e97..63d4b298df 100644 --- a/string.c +++ b/string.c @@ -4148,9 +4148,6 @@ rb_str_intern(VALUE s) volatile VALUE str = s; ID id; - if (!RSTRING_PTR(str) || RSTRING_LEN(str) == 0) { - rb_raise(rb_eArgError, "interning empty string"); - } if (OBJ_TAINTED(str) && rb_safe_level() >= 1 && !rb_sym_interned_p(str)) { rb_raise(rb_eSecurityError, "Insecure: can't intern tainted string"); } -- cgit v1.2.3