From c80550cd455756f6170f254ed92f8bce55a517a5 Mon Sep 17 00:00:00 2001 From: vicki Date: Thu, 19 Aug 2004 16:21:29 +0000 Subject: [PATCH] - initialize deletedElementIndex to make the compiler happy git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7291 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- JavaScriptCore/ChangeLog | 7 +++++++ JavaScriptCore/kjs/property_map.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index 29f9393941dd..36dd7250efbd 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,3 +1,10 @@ +2004-08-19 Vicki Murley + + Reviewed by John. + + * kjs/property_map.cpp: + (KJS::PropertyMap::put): initialize deletedElementIndex to zero, to make the compiler happy + 2004-08-17 Darin Adler Reviewed by Adele. diff --git a/JavaScriptCore/kjs/property_map.cpp b/JavaScriptCore/kjs/property_map.cpp index e455ffad5f74..d6afdf8d90ca 100644 --- a/JavaScriptCore/kjs/property_map.cpp +++ b/JavaScriptCore/kjs/property_map.cpp @@ -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; -- 2.36.0