diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-29 14:32:36 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-05-11 15:55:12 -0400 |
| commit | 5e546365edeb7f9ff92f3fd75fadb19058723813 (patch) | |
| tree | bc8771aa965deec6af5308a4d81e6f75574be00d /src/lib | |
| parent | 657d1cd403a4d97c73260eae1e689e55ff324895 (diff) | |
| download | stasis-5e546365edeb7f9ff92f3fd75fadb19058723813.tar.gz | |
return INISection on init
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/core/ini.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/core/ini.c b/src/lib/core/ini.c index 495ee93..b4674e8 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) { |
