ruby-changes:63972
From: Kenta <ko1@a...>
Date: Mon, 7 Dec 2020 00:19:41 +0900 (JST)
Subject: [ruby-changes:63972] ce707079c1 (master): memory_view.c: suppress uninitialized warning
https://git.ruby-lang.org/ruby.git/commit/?id=ce707079c1 From ce707079c153f389d861c91a8dccc510fab0e245 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Mon, 7 Dec 2020 00:18:55 +0900 Subject: memory_view.c: suppress uninitialized warning diff --git a/memory_view.c b/memory_view.c index 2bf3eee..d896483 100644 --- a/memory_view.c +++ b/memory_view.c @@ -761,7 +761,7 @@ rb_memory_view_extract_item_members(const void *ptr, const rb_memory_view_item_c https://github.com/ruby/ruby/blob/trunk/memory_view.c#L761 } VALUE buf_v = 0; - uint8_t *buf; + uint8_t *buf = NULL; if (need_switch_endianness_p) { buf = ALLOCV_N(uint8_t, buf_v, max_size); } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/