diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-05-27 17:15:58 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-05-28 10:31:02 +0900 |
commit | cfd839c140707852340a840e9e164e0f211fbb42 (patch) | |
tree | eff18cc8fc21b352abee6cca54bbcb3896f8c4db /gc.c | |
parent | fa7a768fdfe5223a29db4fa71b3e6101fb02ad51 (diff) | |
download | ruby-cfd839c140707852340a840e9e164e0f211fbb42.tar.gz |
Suppress warning (uninitialized variable).
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) { |