cnfparse.c

Small library to make config parsing easier
git clone git://git.finwo.net/lib/cnfparse.c
Log | Files | Refs | README | LICENSE

commit f4de9e7f6b56ca91ea12183e7d9626d34f87fa0b
parent a35742d3e660fc26205bc38d764e797dc2c60b48
Author: finwo <finwo@pm.me>
Date:   Sat, 12 Sep 2026 23:26:36 +0200

Fix build warning for locally scoped variable

Diffstat:
Msrc/cnfparse.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cnfparse.c b/src/cnfparse.c @@ -39,7 +39,7 @@ void cnf_directive_free(struct cnf_directive *subject) { if (subject->name) { free(subject->name); } - for(int i = 0 ; i < subject->argc ; i++) { + for(size_t i = 0 ; i < subject->argc ; i++) { free(subject->argv[i]); } if (subject->argv) {