GetGroup now only returns nullptr if the group does not exist.
Use GetOrCreateGroup to create a group.
This avoids creating groups while reading ini files.
if(IniGroup*group=private_ini.GetGroup("private", false);group!=nullptr)group->comment="; This file possibly contains private information which can identify you as person.\n";
if(IniGroup*group=secrets_ini.GetGroup("secrets", false);group!=nullptr)group->comment="; Do not share this file with others, not even if they claim to be technical support.\n; This file contains saved passwords and other secrets that should remain private to you!\n";
if(IniGroup*group=private_ini.GetGroup("private");group!=nullptr)group->comment="; This file possibly contains private information which can identify you as person.\n";
if(IniGroup*group=secrets_ini.GetGroup("secrets");group!=nullptr)group->comment="; Do not share this file with others, not even if they claim to be technical support.\n; This file contains saved passwords and other secrets that should remain private to you!\n";
if(generic_version==IFV_0){
/* Remove some obsolete groups. These have all been loaded into other groups. */
@ -1402,7 +1408,7 @@ void SaveToConfig()
/* These variables are migrated from generic ini to private ini now. */