mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (zero_ptr)
This commit is contained in:
parent
248dfbac08
commit
bffea950d9
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ process).",
|
|||
.map(|x| CString::new(x.as_bytes()).unwrap())
|
||||
.collect();
|
||||
let mut args: Vec<*const c_char> = cstrs.iter().map(|s| s.as_ptr()).collect();
|
||||
args.push(0 as *const c_char);
|
||||
args.push(std::ptr::null::<c_char>());
|
||||
unsafe {
|
||||
execvp(args[0], args.as_mut_ptr());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue