Do not save empty sections names.
This commit is contained in:
parent
6dc401e2e7
commit
39e001962b
|
@ -145,7 +145,7 @@ static void PROFILE_Save( FILE *file, PROFILESECTION *section )
|
|||
|
||||
for ( ; section; section = section->next)
|
||||
{
|
||||
if (section->name) fprintf( file, "\r\n[%s]\r\n", section->name );
|
||||
if (section->name[0]) fprintf( file, "\r\n[%s]\r\n", section->name );
|
||||
for (key = section->key; key; key = key->next)
|
||||
{
|
||||
fprintf( file, "%s", key->name );
|
||||
|
|
Loading…
Reference in New Issue