Skip to content
Snippets Groups Projects
Commit 4bd302b8 authored by rswindell's avatar rswindell
Browse files

Bugfix: segfault in iniAddSection() if NULL style passed.

parent f6fdaf8e
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,8 @@ size_t iniAddSection(str_list_t* list, const char* section
i=find_section_index(*list, section);
if((*list)[i]==NULL) {
if(style==NULL)
style=&default_style;
if(style->section_separator!=NULL)
strListAppend(list, style->section_separator, i++);
SAFEPRINTF(str,"[%s]",section);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment