Browse Source

code review fix

pull/1717/head
Pat Hickey 5 years ago
parent
commit
3920d8c1f3
  1. 3
      crates/wasi-common/src/path.rs

3
crates/wasi-common/src/path.rs

@ -47,9 +47,6 @@ pub(crate) fn get(
// any symlinks we encounter are processed by pushing them on the stack.
let mut path_stack = vec![path.to_owned()];
// No longer need a borrow into the guest memory for `path`:
drop(path);
// Track the number of symlinks we've expanded, so we can return `ELOOP` after too many.
let mut symlink_expansions = 0;

Loading…
Cancel
Save