aboutsummaryrefslogtreecommitdiff
path: root/src/ini.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ini.c')
-rw-r--r--src/ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ini.c b/src/ini.c
index d0757e6..6ce54ac 100644
--- a/src/ini.c
+++ b/src/ini.c
@@ -153,7 +153,7 @@ int ini_getval(struct INIFILE *ini, char *section_name, char *key, int type, uni
case INIVAL_TYPE_STR_ARRAY:
strcpy(tbufp, data->value);
*data->value = '\0';
- for (size_t i = 0; (token = strsep(&tbufp, "\n")) != NULL; i++) {
+ while ((token = strsep(&tbufp, "\n")) != NULL) {
lstrip(token);
strcat(data->value, token);
strcat(data->value, "\n");