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

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