summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-09 18:23:11 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-09 18:23:11 +0000
commit9aacc92bc9296562b9bc007b4305b18d92418770 (patch)
tree3a2eb2358bd2e13af104eaa5d7ba62c9291cc5c9 /gc.c
parent5623c00f4b86ac0bd7888160b4d9b19b0b44b3d1 (diff)
* gc.c (init_mark_stack): MEMZERO() receive type as 2nd argument instead
of size. Coverity Scan found this bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 08fa320335..03e7b8fb26 100644
--- a/gc.c
+++ b/gc.c
@@ -3544,7 +3544,7 @@ init_mark_stack(mark_stack_t *stack)
{
int i;
- MEMZERO(stack, sizeof(mark_stack_t), 1);
+ MEMZERO(stack, mark_stack_t, 1);
stack->index = stack->limit = STACK_CHUNK_SIZE;
stack->cache_size = 0;