avoid &mut on the read path since it now allows concurrent readers
This commit is contained in:
parent
406fd3a277
commit
2200cf10d8
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ pub unsafe fn environ() -> *mut *const *const c_char {
|
|||
extern "C" {
|
||||
static mut environ: *const *const c_char;
|
||||
}
|
||||
&mut environ
|
||||
ptr::addr_of_mut!(environ)
|
||||
}
|
||||
|
||||
pub unsafe fn env_rwlock(readonly: bool) -> RWLockGuard {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue