1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

2000-03-23

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-03-23 08:37:35 +00:00
parent 5c13dd59db
commit 688169fd83
17 changed files with 995 additions and 314 deletions

2
st.c
View file

@ -435,7 +435,7 @@ st_delete_safe(table, key, value, never)
}
for(; ptr != 0; ptr = ptr->next) {
if (EQUAL(table, ptr->key, *key)) {
if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) {
table->num_entries--;
*key = ptr->key;
if (value != 0) *value = ptr->record;