std: fix win32 build error in os::env()

This commit is contained in:
Jeff Olson 2013-09-17 08:40:31 -07:00
parent 3067ee6373
commit 5d9932fddb

View File

@ -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
}