mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1104649 - Always cast the string for putenv. r=glandium
This commit is contained in:
parent
e9547eefb9
commit
c61e014e79
@ -169,7 +169,7 @@ __wrap_PR_SetEnv(const char *string)
|
||||
if ( !strchr(string, '=')) return(-1);
|
||||
|
||||
pthread_mutex_lock(&_pr_envLock);
|
||||
result = putenv(string);
|
||||
result = putenv(const_cast<char*>(string));
|
||||
pthread_mutex_unlock(&_pr_envLock);
|
||||
return (result)? -1 : 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user