mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 10:40:19 +02:00
replace use of uninitialized variable size in reset_literal_pool
This commit is contained in:
parent
bfba596dda
commit
6cdea3995a
1 changed files with 1 additions and 1 deletions
|
@ -1328,7 +1328,7 @@ static void
|
||||||
reset_literal_pool(jit_state_t *_jit, struct jit_literal_pool *pool)
|
reset_literal_pool(jit_state_t *_jit, struct jit_literal_pool *pool)
|
||||||
{
|
{
|
||||||
pool->deadline = _jit->limit - _jit->start;
|
pool->deadline = _jit->limit - _jit->start;
|
||||||
memset(pool->entries, 0, sizeof(pool->entries[0]) * pool->size);
|
memset(pool->entries, 0, sizeof(pool->entries[0]) * pool->capacity);
|
||||||
pool->size = 0;
|
pool->size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue