Commits (2)
...@@ -773,7 +773,7 @@ BOOL sbbs_write_ini( ...@@ -773,7 +773,7 @@ BOOL sbbs_write_ini(
memset(&style, 0, sizeof(style)); memset(&style, 0, sizeof(style));
style.key_prefix = "\t"; style.key_prefix = "\t";
style.section_separator = ""; style.section_separator = "";
style.value_separator = " = "; style.value_separator = " = ";
style.bit_separator = " | "; style.bit_separator = " | ";
...@@ -781,6 +781,7 @@ style.section_separator = ""; ...@@ -781,6 +781,7 @@ style.section_separator = "";
return(FALSE); return(FALSE);
if(global==NULL) { if(global==NULL) {
memset(&global_buf,0,sizeof(global_buf));
get_ini_globals(list, &global_buf); get_ini_globals(list, &global_buf);
global = &global_buf; global = &global_buf;
} }
......
...@@ -462,6 +462,7 @@ BOOL iniSortSections(str_list_t* list, BOOL sort_keys) ...@@ -462,6 +462,7 @@ BOOL iniSortSections(str_list_t* list, BOOL sort_keys)
new_list = strListInit(); new_list = strListInit();
if(new_list == NULL) { if(new_list == NULL) {
strListFree(&section_list); strListFree(&section_list);
strListFree(&root_keys);
return FALSE; return FALSE;
} }
strListAppendList(&new_list, root_keys); strListAppendList(&new_list, root_keys);
...@@ -473,6 +474,7 @@ BOOL iniSortSections(str_list_t* list, BOOL sort_keys) ...@@ -473,6 +474,7 @@ BOOL iniSortSections(str_list_t* list, BOOL sort_keys)
iniAppendSectionWithKeys(&new_list, section_list[i], keys, /* ini_style_t */NULL); iniAppendSectionWithKeys(&new_list, section_list[i], keys, /* ini_style_t */NULL);
strListFree(&keys); strListFree(&keys);
} }
strListFree(&section_list);
strListFree(list); strListFree(list);
*list = new_list; *list = new_list;
return TRUE; return TRUE;
......