[cfe-commits] [libcxx] r134405 - /libcxx/trunk/include/__hash_table

Howard Hinnant hhinnant at apple.com
Tue Jul 5 07:14:17 PDT 2011


Author: hhinnant
Date: Tue Jul  5 09:14:17 2011
New Revision: 134405

URL: http://llvm.org/viewvc/llvm-project?rev=134405&view=rev
Log:
Fix uninitialized loop counter. http://llvm.org/bugs/show_bug.cgi?id=10278

Modified:
    libcxx/trunk/include/__hash_table

Modified: libcxx/trunk/include/__hash_table
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__hash_table?rev=134405&r1=134404&r2=134405&view=diff
==============================================================================
--- libcxx/trunk/include/__hash_table (original)
+++ libcxx/trunk/include/__hash_table Tue Jul  5 09:14:17 2011
@@ -1168,7 +1168,7 @@
         __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;
     }





More information about the cfe-commits mailing list