aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/core/ini.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/core/ini.c b/src/lib/core/ini.c
index d4e6052..14c6875 100644
--- a/src/lib/core/ini.c
+++ b/src/lib/core/ini.c
@@ -14,8 +14,9 @@ struct INIFILE *ini_init() {
return ini;
}
-void ini_section_init(struct INIFILE **ini) {
- (*ini)->section = calloc((*ini)->section_count + 1, sizeof(**(*ini)->section));
+struct INISection **ini_section_init(struct INIFILE **ini) {
+ struct INISection **section = calloc((*ini)->section_count + 1, sizeof(**(*ini)->section));
+ return section;
}
struct INISection *ini_section_search(struct INIFILE **ini, unsigned mode, const char *value) {