aboutsummaryrefslogtreecommitdiff
path: root/tests/test_ini.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2026-05-12 13:34:13 -0400
committerGitHub <noreply@github.com>2026-05-12 13:34:13 -0400
commitd8ee8c27444a56bb98dd8bd67a019a1e9efbcc10 (patch)
tree6ae1275a5f8e5794b917aac95c6cb1ab3f4cb6c5 /tests/test_ini.c
parent4649a889a916aa377ebd3ca8f3daa9ac703baa34 (diff)
parent1d91efc28e30c8501428fec8ff6cd7b13dcdfb95 (diff)
downloadstasis-1.6.1.tar.gz
Merge pull request #139 from jhunkeler/bughunt-1002HEAD1.6.1master
Bughunt 0x1002
Diffstat (limited to 'tests/test_ini.c')
-rw-r--r--tests/test_ini.c2
1 files changed, 1 insertions, 1 deletions
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");
}