mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Strip whitespace from front of profile values.
This commit is contained in:
parent
1f34ce594a
commit
a6ae55542f
1 changed files with 4 additions and 0 deletions
|
@ -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" );
|
||||
|
|
Loading…
Reference in a new issue