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 b5548e5 commit f377e85Copy full SHA for f377e85
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: f96ad30dfc3501b979fd1d089f43e7fb6ff9eec3
+refs/heads/master: 54ddb553c2dab521f4d3bdf45e70767a413852d3
trunk/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