- fixed two problems compiling with gcc 4.0
[WebKit-https.git] / JavaScriptCore / kjs / array_object.cpp
index 184480b..a8d5919 100644 (file)
@@ -426,7 +426,7 @@ ValueImp *ArrayProtoFuncImp::callAsFunction(ExecState *exec, ObjectImp *thisObj,
 {
   unsigned length = thisObj->get(exec,lengthPropertyName)->toUInt32(exec);
 
-  ValueImp *result;
+  ValueImp *result = 0; // work around gcc 4.0 bug in uninitialized variable warning
   
   switch (id) {
   case ToLocaleString: