From d55c1adb0ae5947f5bdc2e3493f7b7c20e9fe634 Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Wed, 2 Jun 2010 08:17:19 +0000 Subject: [PATCH] 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 --- src/objects.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.7.4