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:
parent
5c13dd59db
commit
688169fd83
17 changed files with 995 additions and 314 deletions
2
st.c
2
st.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue