mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Do not save empty sections names.
This commit is contained in:
parent
6dc401e2e7
commit
39e001962b
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue