summaryrefslogtreecommitdiff
path: root/ext/sdbm/init.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-25 19:31:55 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-25 19:31:55 +0000
commit9e4cfb5da467f0e088436ebe8b70a857bfcfea2f (patch)
tree3674a7a6420b125d71ae9bc58fe5022e233a2c73 /ext/sdbm/init.c
parent3da9449263c587415756bcea44b9e1ec5a3643dd (diff)
* ext/dbm/dbm.c (fdbm_indexes, fdbm_select): add a missing
argument and prevent coredump when a nonexistent key is specified. * ext/sdbm/init.c (fsdbm_indexes, fsdbm_select): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/sdbm/init.c')
-rw-r--r--ext/sdbm/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 280637a..99945d3 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -209,7 +209,7 @@ fsdbm_indexes(argc, argv, obj)
new = rb_ary_new2(argc);
for (i=0; i<argc; i++) {
- rb_ary_push(new, fsdbm_fetch(obj, argv[i]));
+ rb_ary_push(new, fsdbm_fetch(obj, argv[i], Qnil));
}
return new;
@@ -247,7 +247,7 @@ fsdbm_select(argc, argv, obj)
}
else {
for (i=0; i<argc; i++) {
- rb_ary_push(new, fsdbm_fetch(obj, argv[i]));
+ rb_ary_push(new, fsdbm_fetch(obj, argv[i], Qnil));
}
}