summaryrefslogtreecommitdiffstats
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
commita5908c53519ac38da0032a0b5d9fe61170011d1c (patch)
treecc5f81eb6213c0a1e69fb129d025dc9a6f131ee6
parent286993e378d976c89a2dd58ef344e24bee13f5e9 (diff)
downloadruby-a5908c53519ac38da0032a0b5d9fe61170011d1c.tar.gz
ruby-a5908c53519ac38da0032a0b5d9fe61170011d1c.tar.xz
ruby-a5908c53519ac38da0032a0b5d9fe61170011d1c.zip
* st.c (st_clear): reset num_entries too.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--st.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c8c38b0ad..84aa170c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Aug 21 15:00:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * st.c (st_clear): reset num_entries too.
+
Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* hash.c (st_foreach_func, rb_foreach_func): typedefed.
diff --git a/st.c b/st.c
index ce2b7eecc..c14ea4a7e 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;
}