From 5d9932fddba27572b0aeb1424b014cd21a5cf28e Mon Sep 17 00:00:00 2001 From: Jeff Olson Date: Tue, 17 Sep 2013 08:40:31 -0700 Subject: [PATCH] std: fix win32 build error in os::env() --- src/libstd/os.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/os.rs b/src/libstd/os.rs index d0a658a46a907..17b71e7b15521 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -196,7 +196,7 @@ pub fn env() -> ~[(~str,~str)] { if (ch as uint == 0) { fail!("os::env() failure getting env string from OS: %s", os::last_os_error()); } - result = unsafe { str::raw::from_c_multistring(ch as *libc::c_char, None) }; + let result = unsafe { str::raw::from_c_multistring(ch as *libc::c_char, None) }; FreeEnvironmentStringsA(ch); result }