From: rossberg@chromium.org Date: Mon, 8 Jul 2013 15:41:06 +0000 (+0000) Subject: Fix stupidity X-Git-Tag: upstream/4.7.83~13471 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b04abd892fbbb7f50cef848ba72ab6b432cc4352;p=platform%2Fupstream%2Fv8.git Fix stupidity R=jkummerow@chromium.org BUG= Review URL: https://codereview.chromium.org/18801004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15560 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/objects.cc b/src/objects.cc index 7241126..3a60a32 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -15850,8 +15850,8 @@ MaybeObject* PropertyCell::SetValueInferType(Object* value, &PropertyCell::UpdateType, Handle(this), Handle(value, GetIsolate())); - Type* new_type; - if (maybe_type->To(&new_type)) return maybe_type; + Type* new_type = NULL; + if (!maybe_type->To(&new_type)) return maybe_type; set_type(new_type); } return value;