Strip whitespace from front of profile values.

This commit is contained in:
Marcus Meissner 2000-06-13 01:06:22 +00:00 committed by Alexandre Julliard
parent 1f34ce594a
commit a6ae55542f

View file

@ -790,6 +790,10 @@ static BOOL PROFILE_SetString( LPCSTR section_name, LPCSTR key_name,
if (!key) return FALSE;
if (key->value)
{
/* strip the leading spaces. We can safely strip \n\r and
* friends too, they should not happen here anyway. */
while (PROFILE_isspace(*value)) value++;
if (!strcmp( key->value, value ))
{
TRACE(" no change needed\n" );