Skip to content

Commit 70152ff

Browse files
committed
std: fix win32 build issue re: multistring parsing
1 parent a5275ff commit 70152ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub fn env() -> ~[(~str,~str)] {
196196
if (ch as uint == 0) {
197197
fail!("os::env() failure getting env string from OS: %s", os::last_os_error());
198198
}
199-
let result = unsafe { str::raw::from_c_multistring(ch as *libc::c_char, None) };
199+
let result = str::raw::from_c_multistring(ch as *libc::c_char, None);
200200
FreeEnvironmentStringsA(ch);
201201
result
202202
}

0 commit comments

Comments
 (0)