1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warning (uninitialized variable).

This commit is contained in:
Koichi Sasada 2019-05-27 17:15:58 +09:00
parent fa7a768fdf
commit cfd839c140

2
gc.c
View file

@ -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]) {