File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/libstd/sys/unix/process Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -280,8 +280,8 @@ impl Command {
280
280
}
281
281
282
282
unsafe {
283
- let mut file_actions = PosixSpawnFileActions ( mem:: zeroed ( ) ) ;
284
- let mut attrs = PosixSpawnattr ( mem:: zeroed ( ) ) ;
283
+ let mut file_actions = PosixSpawnFileActions ( mem:: uninitialized ( ) ) ;
284
+ let mut attrs = PosixSpawnattr ( mem:: uninitialized ( ) ) ;
285
285
286
286
libc:: posix_spawnattr_init ( & mut attrs. 0 ) ;
287
287
libc:: posix_spawn_file_actions_init ( & mut file_actions. 0 ) ;
@@ -302,7 +302,7 @@ impl Command {
302
302
libc:: STDERR_FILENO ) ) ?;
303
303
}
304
304
305
- let mut set: libc:: sigset_t = mem:: zeroed ( ) ;
305
+ let mut set: libc:: sigset_t = mem:: uninitialized ( ) ;
306
306
cvt ( libc:: sigemptyset ( & mut set) ) ?;
307
307
cvt ( libc:: posix_spawnattr_setsigmask ( & mut attrs. 0 ,
308
308
& set) ) ?;
You can’t perform that action at this time.
0 commit comments