summaryrefslogtreecommitdiff
path: root/memory_view.c
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-07 00:18:55 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-07 00:19:25 +0900
commitce707079c153f389d861c91a8dccc510fab0e245 (patch)
treeb19d218cc0cf65a0d45b19bb4151ce05fa6af213 /memory_view.c
parente427c5cc2a8cc1163bfef7fb84f06a3e709a93b5 (diff)
memory_view.c: suppress uninitialized warning
Diffstat (limited to 'memory_view.c')
-rw-r--r--memory_view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory_view.c b/memory_view.c
index 2bf3eee107..d89648317d 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
}
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);
}