From 1d91efc28e30c8501428fec8ff6cd7b13dcdfb95 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 12 May 2026 12:38:24 -0400 Subject: replace for-loop with while-loop since 'i' was unused --- tests/test_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_ini.c b/tests/test_ini.c index af47ddf..3070806 100644 --- a/tests/test_ini.c +++ b/tests/test_ini.c @@ -205,7 +205,7 @@ void test_ini_getall() { STASIS_ASSERT_FATAL(ini != NULL, "failed to open ini file"); const struct INIData *d = NULL; - for (size_t i = 0; (d = ini_getall(ini, "default")) != NULL; i++) { + while ((d = ini_getall(ini, "default")) != NULL) { STASIS_ASSERT(d->key != NULL, "INIData key should not be NULL"); STASIS_ASSERT(d->value != NULL, "INIData key should not be NULL"); } -- cgit