summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 06:00:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-21 06:00:25 +0000
commit1ad3f7f582c0b52a2b4b104d469c589a524f2c88 (patch)
treecc5f81eb6213c0a1e69fb129d025dc9a6f131ee6 /st.c
parent2b1cbac0ed37ec5927b1f7d69855b480b87693f2 (diff)
* st.c (st_clear): reset num_entries too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/st.c b/st.c
index ce2b7eecc5..c14ea4a7e3 100644
--- a/st.c
+++ b/st.c
@@ -214,6 +214,7 @@ st_clear(st_table *table)
ptr = next;
}
}
+ table->num_entries = 0;
table->head = 0;
}