We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f96ad30 commit 54ddb55Copy full SHA for 54ddb55
src/lib/run_program.rs
@@ -92,8 +92,7 @@ type program = obj {
92
fn arg_vec(prog: str, args: [@str]) -> [sbuf] {
93
let argptrs = str::as_buf(prog, {|buf| [buf] });
94
for arg in args { argptrs += str::as_buf(*arg, {|buf| [buf] }); }
95
- // FIXME: ptr::null instead of cast
96
- argptrs += [unsafe {unsafe::reinterpret_cast(0)}];
+ argptrs += [ptr::null()];
97
ret argptrs;
98
}
99
0 commit comments