Commit d55c1adb authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

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
parent 33973b7d
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment