summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-23 08:37:35 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-23 08:37:35 +0000
commite68f544351359c62da09401ae2382ce33aabf741 (patch)
treeb4724e5397cf5da5b554ab5795842a93145a88be /st.c
parentb54db8568cae6f5be8b98977a82d11df2d5c8c73 (diff)
downloadruby-e68f544351359c62da09401ae2382ce33aabf741.tar.gz
ruby-e68f544351359c62da09401ae2382ce33aabf741.tar.xz
ruby-e68f544351359c62da09401ae2382ce33aabf741.zip
2000-03-23
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index ede02b216..2ce868d64 100644
--- a/st.c
+++ b/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;