std: fix win32 build issue re: multistring parsing
This commit is contained in:
parent
a5275ffd5c
commit
70152ff557
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user