Skip to content

Commit 9a87a34

Browse files
committed
Rename argv_ -> argv
1 parent ed927df commit 9a87a34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/container.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ impl Container {
521521
program: &str,
522522
argv: &[&str],
523523
) -> super::Result<i32> {
524-
let mut argv_: Vec<*const i8> = argv.iter().map(|e| to_cstr(*e)).collect();
525-
argv_.push(null());
524+
let mut argv: Vec<*const i8> = argv.iter().map(|e| to_cstr(*e)).collect();
525+
argv.push(null());
526526

527-
let pid = call!(self.attach_run_wait(options, to_cstr(program), argv_.as_ptr()));
527+
let pid = call!(self.attach_run_wait(options, to_cstr(program), argv.as_ptr()));
528528

529529
if pid == -1 {
530530
Err(self.last_error())

0 commit comments

Comments
 (0)