From 70152ff55722878cde684ee6462c14c65f2c4729 Mon Sep 17 00:00:00 2001 From: Jeff Olson Date: Tue, 17 Sep 2013 11:15:33 -0700 Subject: [PATCH] std: fix win32 build issue re: multistring parsing --- 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 17b71e7b15521..09ac2b368e76d 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()); } - 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 }