From aae9370e41f7421be9217741fb2f9ca492deeb1c Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sun, 13 Jan 2019 00:37:58 +0000
Subject: [PATCH] Updated the default sbbs.ini style when saving (improve
 readability): - separate sections with a blank line (when adding a section) -
 place spaces around '=' in value assignments ("key = value").

---
 src/sbbs3/sbbs_ini.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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