diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-09 18:23:11 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-09 18:23:11 +0000 |
commit | 9aacc92bc9296562b9bc007b4305b18d92418770 (patch) | |
tree | 3a2eb2358bd2e13af104eaa5d7ba62c9291cc5c9 /gc.c | |
parent | 5623c00f4b86ac0bd7888160b4d9b19b0b44b3d1 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |