hrev45571 adds 1 changeset to branch 'master' old head: 6a2d6f5062d43a3f5f631c699d3f0a90b0eff8bd new head: 274ca38fd1de0bd5e41999d5c1d665aeea62b034 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=274ca38+%5E6a2d6f5 ---------------------------------------------------------------------------- 274ca38: BOpenHashTable::Clear(): Set fItemCount to 0 If not empty, the count would afterwards be out of sync with reality. [ Ingo Weinhold <ingo_weinhold@xxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45571 Commit: 274ca38fd1de0bd5e41999d5c1d665aeea62b034 URL: http://cgit.haiku-os.org/haiku/commit/?id=274ca38 Author: Ingo Weinhold <ingo_weinhold@xxxxxx> Date: Thu Apr 18 13:52:57 2013 UTC Committer: Rene Gollent <anevilyak@xxxxxxxxx> Commit-Date: Sat Apr 27 20:21:41 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 2 insertions(+), 1 deletion(-) headers/private/kernel/util/OpenHashTable.h | 3 ++- ---------------------------------------------------------------------------- diff --git a/headers/private/kernel/util/OpenHashTable.h b/headers/private/kernel/util/OpenHashTable.h index be711c4..a2af3aa 100644 --- a/headers/private/kernel/util/OpenHashTable.h +++ b/headers/private/kernel/util/OpenHashTable.h @@ -230,7 +230,7 @@ public: */ ValueType* Clear(bool returnElements = false) { - if (this->fItemCount == 0) + if (fItemCount == 0) return NULL; ValueType* result = NULL; @@ -256,6 +256,7 @@ public: } memset(this->fTable, 0, sizeof(ValueType*) * this->fTableSize); + fItemCount = 0; return result; }