Do not save empty sections names.

This commit is contained in:
Mehmet Yasar 2002-01-04 18:24:37 +00:00 committed by Alexandre Julliard
parent 6dc401e2e7
commit 39e001962b
1 changed files with 1 additions and 1 deletions

View File

@ -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 );