Skip to content

Commit 8e3fa0d

Browse files
committed
Pass proper pointer for envp.
1 parent 94630e4 commit 8e3fa0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/process/process_unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl Command {
315315
cvt(libc::posix_spawnattr_setflags(&mut attrs.0, flags as _))?;
316316

317317
let envp = envp.map(|c| c.as_ptr())
318-
.unwrap_or(sys::os::environ() as *const _);
318+
.unwrap_or(*sys::os::environ() as *const _);
319319
let ret = libc::posix_spawnp(
320320
&mut p.pid,
321321
self.get_argv()[0],

0 commit comments

Comments
 (0)