std: fix win32 build issue re: multistring parsing

This commit is contained in:
Jeff Olson 2013-09-17 11:15:33 -07:00
parent a5275ffd5c
commit 70152ff557
1 changed files with 1 additions and 1 deletions

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());
}
let result = unsafe { str::raw::from_c_multistring(ch as *libc::c_char, None) };
let result = str::raw::from_c_multistring(ch as *libc::c_char, None);
FreeEnvironmentStringsA(ch);
result
}