diff --git a/src/sbbs3/sbbs_ini.c b/src/sbbs3/sbbs_ini.c index 7247acb586d5dd1e6e8239422bdcfdfd5ea44bc8..f28c123e54365f778a0dd39a4004dabf3b004d3f 100644 --- a/src/sbbs3/sbbs_ini.c +++ b/src/sbbs3/sbbs_ini.c @@ -740,9 +740,15 @@ BOOL sbbs_write_ini( BOOL result=FALSE; str_list_t list; str_list_t* lp; - ini_style_t style = { .key_prefix = "\t", .section_separator = "", .value_separator = " = ", .bit_separator = " | " }; + ini_style_t style; global_startup_t global_buf; + memset(&style, 0, sizeof(style)); + style.key_prefix = "\t"; + style.section_separator = ""; + style.value_separator = " = "; + style.bit_separator = " | "; + if((list=iniReadFile(fp))==NULL) return(FALSE);