From 4f3aeb4703f26d4063cd87bf2a0862051394b504 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 14 Aug 2012 15:58:21 -0700 Subject: [PATCH] Attempt to fix windows bustage --- src/libcore/run.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/run.rs b/src/libcore/run.rs index 02c7fe6da27a..8eb62f96a829 100644 --- a/src/libcore/run.rs +++ b/src/libcore/run.rs @@ -120,13 +120,13 @@ fn with_envp(env: &option<~[(~str,~str)]>, } #[cfg(windows)] -fn with_envp(env: option<~[(~str,~str)]>, +fn with_envp(env: &option<~[(~str,~str)]>, cb: fn(*c_void) -> T) -> T { // On win32 we pass an "environment block" which is not a char**, but // rather a concatenation of null-terminated k=v\0 sequences, with a final // \0 to terminate. unsafe { - match env { + match *env { some(es) if !vec::is_empty(es) => { let mut blk : ~[u8] = ~[]; for vec::each(es) |e| {