Skip to content

Commit 5d9932f

Browse files
committed
std: fix win32 build error in os::env()
1 parent 3067ee6 commit 5d9932f

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

0 commit comments

Comments
 (0)