diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/core/ini.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/core/ini.c b/src/lib/core/ini.c index 9c332ca..2cb0ee4 100644 --- a/src/lib/core/ini.c +++ b/src/lib/core/ini.c @@ -513,6 +513,9 @@ char *unquote(char *s) { } void ini_free(struct INIFILE **ini) { + if (!(*ini)) { + return; + } for (size_t section = 0; section < (*ini)->section_count; section++) { for (size_t data = 0; data < (*ini)->section[section]->data_count; data++) { if ((*ini)->section[section]->data[data]) { |
