From 9f66bffdbe23ae8b1ddfa43f451def27f30402b0 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 5 Jul 2011 14:14:17 +0000 Subject: [PATCH] Fix uninitialized loop counter. http://llvm.org/bugs/show_bug.cgi?id=10278 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@134405 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__hash_table | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/__hash_table b/include/__hash_table index 8efec224..d469b080 100644 --- a/include/__hash_table +++ b/include/__hash_table @@ -1168,7 +1168,7 @@ __hash_table<_Tp, _Hash, _Equal, _Alloc>::clear() _NOEXCEPT __deallocate(__p1_.first().__next_); __p1_.first().__next_ = nullptr; size_type __bc = bucket_count(); - for (size_type __i; __i < __bc; ++__i) + for (size_type __i = 0; __i < __bc; ++__i) __bucket_list_[__i] = nullptr; size() = 0; }