Skip to content

Commit 4f3aeb4

Browse files
committed
Attempt to fix windows bustage
1 parent 2674f79 commit 4f3aeb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ fn with_envp<T>(env: &option<~[(~str,~str)]>,
120120
}
121121

122122
#[cfg(windows)]
123-
fn with_envp<T>(env: option<~[(~str,~str)]>,
123+
fn with_envp<T>(env: &option<~[(~str,~str)]>,
124124
cb: fn(*c_void) -> T) -> T {
125125
// On win32 we pass an "environment block" which is not a char**, but
126126
// rather a concatenation of null-terminated k=v\0 sequences, with a final
127127
// \0 to terminate.
128128
unsafe {
129-
match env {
129+
match *env {
130130
some(es) if !vec::is_empty(es) => {
131131
let mut blk : ~[u8] = ~[];
132132
for vec::each(es) |e| {

0 commit comments

Comments
 (0)