Update library/std/src/sys/pal/unix/process/process_vxworks.rs

Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
Yuri Astrakhan 2024-10-08 22:17:16 -04:00 committed by Yuri Astrakhan
parent 442d766cc1
commit a278f15724

View File

@ -57,7 +57,7 @@ macro_rules! t {
t!(cvt_r(|| libc::dup2(fd, libc::STDERR_FILENO))); t!(cvt_r(|| libc::dup2(fd, libc::STDERR_FILENO)));
} }
if let Some(cwd) = *self.get_cwd() { if let Some(cwd) = self.get_cwd() {
t!(cvt(libc::chdir(cwd.as_ptr()))); t!(cvt(libc::chdir(cwd.as_ptr())));
} }