mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1104649 - Always cast the string for putenv. r=glandium
This commit is contained in:
parent
dbf5c1d53f
commit
9401481dd6
@ -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