- initialize deletedElementIndex to make the compiler happy
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Aug 2004 16:21:29 +0000 (16:21 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Aug 2004 16:21:29 +0000 (16:21 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7291 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/property_map.cpp

index 29f9393941dd31fbfd9ac066b12b7b8955b35d26..36dd7250efbdc3e5d59f540d17b24c6bdd4a8767 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-19  Vicki Murley  <vicki@apple.com>
+
+        Reviewed by John.
+
+        * kjs/property_map.cpp:
+        (KJS::PropertyMap::put): initialize deletedElementIndex to zero, to make the compiler happy
+
 2004-08-17  Darin Adler  <darin@apple.com>
 
         Reviewed by Adele.
index e455ffad5f7408a46632c932495b576343a3d74d..d6afdf8d90ca877d3d172b0291a08af87ef466ed 100644 (file)
@@ -279,7 +279,7 @@ void PropertyMap::put(const Identifier &name, ValueImp *value, int attributes)
     int i = h & _table->sizeMask;
     int k = 0;
     bool foundDeletedElement = false;
-    int deletedElementIndex;
+    int deletedElementIndex = 0;    /* initialize to make the compiler happy */
 #if DUMP_STATISTICS
     ++numProbes;
     numCollisions += _table->entries[i].key && _table->entries[i].key != rep;