summaryrefslogtreecommitdiffstats
path: root/ext/sdbm
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 12:47:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 12:47:20 +0000
commitf71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d (patch)
treedb3928abc44090d749b6609bfb7ef49f2631a5c9 /ext/sdbm
parent7008e5c98b9e0fa8deecafc3d0474f4ed838d17a (diff)
downloadruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.tar.gz
ruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.tar.xz
ruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.zip
* string.c (str_gsub): reentrant check. [ruby-dev:24432]
* backport all SEGV bug fixes from CVS HEAD. [ruby-dev:24536] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm')
-rw-r--r--ext/sdbm/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 0f9ae1dbf..ed39769e7 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -366,6 +366,7 @@ fsdbm_delete_if(obj)
for (i = 0; i < RARRAY(ary)->len; i++) {
keystr = RARRAY(ary)->ptr[i];
+ StringValue(keystr);
key.dptr = RSTRING(keystr)->ptr;
key.dsize = RSTRING(keystr)->len;
if (sdbm_delete(dbm, key)) {