Skip to content
Snippets Groups Projects
Pekka Paalanen's avatar
Pekka Paalanen authored
realloc() does not initialize the added memory, it needs to be zeroed
explicitly.

Not zeroing this memory had one severe consequence: if the new
lowest_free_bucket was 0xffffffff, weston_idalloc_get_id() would fail an
assertion.

Otherwise non-zero bits in the added memory would just cause id numbers
to be skipped unnecessarily, which does no harm.

Fixes: #1000



Signed-off-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
ed51e9ae
History
Name Last commit Last update