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:
parent
fa7a768fdf
commit
cfd839c140
1 changed files with 1 additions and 1 deletions
2
gc.c
2
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]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue