summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-05-27 17:15:58 +0900
committerKoichi Sasada <ko1@atdot.net>2019-05-28 10:31:02 +0900
commitcfd839c140707852340a840e9e164e0f211fbb42 (patch)
treeeff18cc8fc21b352abee6cca54bbcb3896f8c4db /gc.c
parentfa7a768fdfe5223a29db4fa71b3e6101fb02ad51 (diff)
Suppress warning (uninitialized variable).
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 2c89561868..c2695bbe3b 100644
--- a/gc.c
+++ b/gc.c
@@ -1088,7 +1088,7 @@ check_rvalue_consistency_force(const VALUE obj, int terminate)
}
else if (!is_pointer_to_heap(objspace, (void *)obj)) {
/* check if it is in tomb_pages */
- struct heap_page *page;
+ struct heap_page *page = NULL;
list_for_each(&heap_tomb->pages, page, page_node) {
if (&page->start[0] <= (RVALUE *)obj &&
(RVALUE *)obj < &page->start[page->total_slots]) {