From d4e0d983de28d8c510a7fa8b0298a8dda9cfc9e6 Mon Sep 17 00:00:00 2001 From: Matthew LeVan Date: Thu, 18 Jan 2024 10:00:54 -0500 Subject: [PATCH] pma: declare `_bt_falloc` iterator variables before `start` label --- rust/ares_pma/c-src/btree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/ares_pma/c-src/btree.c b/rust/ares_pma/c-src/btree.c index eb15dd3..ab266b4 100644 --- a/rust/ares_pma/c-src/btree.c +++ b/rust/ares_pma/c-src/btree.c @@ -2391,9 +2391,11 @@ _bt_falloc(BT_state *state, size_t pages) { /* walk the persistent file freelist and return a pgno with sufficient contiguous space for pages */ + BT_flistnode **n; + pgno_t ret; start: - BT_flistnode **n = &state->flist; - pgno_t ret = 0; + n = &state->flist; + ret = 0; /* first fit */ for (; *n; n = &(*n)->next) {