From: erik.corry@gmail.com Date: Wed, 2 Jun 2010 08:17:19 +0000 (+0000) Subject: Initialize variable to make gcc happy. X-Git-Tag: upstream/4.7.83~21702 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d55c1adb0ae5947f5bdc2e3493f7b7c20e9fe634;p=platform%2Fupstream%2Fv8.git Initialize variable to make gcc happy. http://code.google.com/p/v8/issues/detail?id=727 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4777 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/objects.cc b/src/objects.cc index e2c5bc9..74f3e80 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -2958,7 +2958,7 @@ Object* JSObject::LookupAccessor(String* name, bool is_getter) { // Make the lookup and include prototypes. int accessor_index = is_getter ? kGetterIndex : kSetterIndex; - uint32_t index; + uint32_t index = 0; // Initialize index to make compiler happy. if (name->AsArrayIndex(&index)) { for (Object* obj = this; obj != Heap::null_value();