Fix AIX compiler warning
authormichael_dawson <michael_dawson@ca.ibm.com>
Thu, 30 Apr 2015 08:01:50 +0000 (01:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Apr 2015 08:01:58 +0000 (08:01 +0000)
Fix AIX compiler warning indicating that variable may not be
initialized

modified:   src/heap/heap.cc

R=danno@chromium.org, svenpanne@chromium.org, mbrandy@us.ibm.com

BUG=

Review URL: https://codereview.chromium.org/1112883002

Cr-Commit-Position: refs/heads/master@{#28145}

src/heap/heap.cc

index 5adea4c..cce162f 100644 (file)
@@ -3724,7 +3724,7 @@ AllocationResult Heap::CopyCode(Code* code) {
     new_constant_pool = empty_constant_pool_array();
   }
 
-  HeapObject* result;
+  HeapObject* result = NULL;
   // Allocate an object the same size as the code object.
   int obj_size = code->Size();
   allocation = AllocateRaw(obj_size, CODE_SPACE, CODE_SPACE);