From 1ad3f7f582c0b52a2b4b104d469c589a524f2c88 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Aug 2007 06:00:25 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ st.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index c8c38b0ad2..84aa170c7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 21 15:00:23 2007 Koichi Sasada + + * st.c (st_clear): reset num_entries too. + Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada * hash.c (st_foreach_func, rb_foreach_func): typedefed. 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; }