1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 13:30:26 +02:00

Fix embarassing use of uninitialized variable

This commit is contained in:
Andy Wingo 2025-01-10 08:46:25 +01:00
parent 47aa6f041f
commit 8b96d8cf90

View file

@ -223,7 +223,7 @@ size_t gc_visit_finalizer_roots(struct gc_finalizer_state *state,
void *), void *),
struct gc_heap *heap, struct gc_heap *heap,
void *visit_data) { void *visit_data) {
size_t count; size_t count = 0;
for (size_t tidx = 0; tidx < state->table_count; tidx++) { for (size_t tidx = 0; tidx < state->table_count; tidx++) {
struct gc_finalizer_table *table = &state->tables[tidx]; struct gc_finalizer_table *table = &state->tables[tidx];
if (table->finalizer_count) { if (table->finalizer_count) {