core: Fix some option-demode fallout on windows

This commit is contained in:
Brian Anderson 2012-09-23 18:32:57 -07:00
parent 4a78f9b166
commit 0e14fd6e13

View File

@ -474,7 +474,7 @@ fn homedir() -> Option<Path> {
#[cfg(windows)]
fn secondary() -> Option<Path> {
do option::chain(getenv(~"USERPROFILE")) |p| {
do option::chain(&getenv(~"USERPROFILE")) |p| {
if !str::is_empty(p) {
Some(Path(p))
} else {