Fix compile issue.
authoryangguo@chromium.org <yangguo@chromium.org>
Fri, 17 Oct 2014 14:46:05 +0000 (14:46 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Fri, 17 Oct 2014 14:46:05 +0000 (14:46 +0000)
TBR=dcarney@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24699 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/debug.cc

index 15c1a8bc709f791003917402a8efd6344dacb46a..c1c2aad68279b549005857c631e8d3999e6b610d 100644 (file)
@@ -1561,14 +1561,14 @@ Handle<Object> Debug::GetSourceBreakLocations(
       BreakPointInfo* break_point_info =
           BreakPointInfo::cast(debug_info->break_points()->get(i));
       if (break_point_info->GetBreakPointCount() > 0) {
-        Smi* position;
+        Smi* position = NULL;
         switch (position_alignment) {
-        case STATEMENT_ALIGNED:
-          position = break_point_info->statement_position();
-          break;
-        case BREAK_POSITION_ALIGNED:
-          position = break_point_info->source_position();
-          break;
+          case STATEMENT_ALIGNED:
+            position = break_point_info->statement_position();
+            break;
+          case BREAK_POSITION_ALIGNED:
+            position = break_point_info->source_position();
+            break;
         }
 
         locations->set(count++, position);