ruby-changes:55980
From: NAKAMURA <ko1@a...>
Date: Tue, 4 Jun 2019 03:53:55 +0900 (JST)
Subject: [ruby-changes:55980] NAKAMURA Usaku: ca22cccc14 (trunk): get rid of a warning of VC++
https://git.ruby-lang.org/ruby.git/commit/?id=ca22cccc14 From ca22cccc14e17d21b4fe7b5aed680e9edf12afb7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Usaku <usa@r...> Date: Tue, 4 Jun 2019 03:52:53 +0900 Subject: get rid of a warning of VC++ diff --git a/gc.c b/gc.c index b2713bd..1b21845 100644 --- a/gc.c +++ b/gc.c @@ -7562,7 +7562,7 @@ static struct heap_page ** https://github.com/ruby/ruby/blob/trunk/gc.c#L7562 allocate_page_list(rb_objspace_t *objspace, page_compare_func_t *comparator) { size_t total_pages = heap_eden->total_pages; - struct heap_page *page, **page_list = malloc(total_pages * sizeof(struct heap_page *)); + struct heap_page *page = 0, **page_list = malloc(total_pages * sizeof(struct heap_page *)); int i = 0; list_for_each(&heap_eden->pages, page, page_node) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/