Skip to content

Commit 4d96950

Browse files
committed
---
yaml --- r: 83191 b: refs/heads/try c: 823ebb1 h: refs/heads/master i: 83189: 5de0e37 83187: a5492e5 83183: 6ae3eed v: v3
1 parent 11f6e5d commit 4d96950

File tree

18 files changed

+281
-1463
lines changed

18 files changed

+281
-1463
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: c135cb268355afe77d2ce0313a8d3e20a4e2fdd3
5+
refs/heads/try: 823ebb14ba6ed99df1198c6d1b47c5d2964196da
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libextra/workcache.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ impl Database {
198198
}
199199
}
200200

201+
// FIXME #4330: use &mut self here
201202
#[unsafe_destructor]
202203
impl Drop for Database {
203204
fn drop(&mut self) {

branches/try/src/libstd/os.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,16 @@ 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 = str::raw::from_c_multistring(ch as *libc::c_char, None);
199+
let mut curr_ptr: uint = ch as uint;
200+
let mut result = ~[];
201+
while(*(curr_ptr as *libc::c_char) != 0 as libc::c_char) {
202+
let env_pair = str::raw::from_c_str(
203+
curr_ptr as *libc::c_char);
204+
result.push(env_pair);
205+
curr_ptr +=
206+
libc::strlen(curr_ptr as *libc::c_char) as uint
207+
+ 1;
208+
}
200209
FreeEnvironmentStringsA(ch);
201210
result
202211
}

0 commit comments

Comments
 (0)