Use null()/null_mut() instead of 0 as *const T/0 as *mut T
This commit is contained in:
parent
3903ea96f5
commit
06fb196256
22 changed files with 65 additions and 52 deletions
|
|
@ -405,7 +405,7 @@ fn make_envp(env: Option<&HashMap<OsString, OsString>>)
|
|||
|
||||
(ptrs.as_ptr() as *const _, tmps, ptrs)
|
||||
} else {
|
||||
(0 as *const _, Vec::new(), Vec::new())
|
||||
(ptr::null(), Vec::new(), Vec::new())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue