aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 14:32:36 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-29 14:32:36 -0400
commit5e6f4978719d18d46ad2ba26d5c25cc539a77b77 (patch)
treec9f3eb11a8bda8e455b0c49c2ee430e45fa95aa9
parent88ec748a0cb9b2eb5ccb270b3147ecb368e9b306 (diff)
downloadstasis-bughunt-1002.tar.gz
return INISection on initbughunt-1002
-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) {