core: Fix more windows bustage
This commit is contained in:
parent
4e2899ba88
commit
a6fe5ef1a9
@ -433,7 +433,7 @@ pub 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user