Skip to content

Commit

Permalink
Could it be the fn ref?
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 7, 2023
1 parent 06ccd70 commit b3680fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbolize/gimli/libs_dl_iterate_phdr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn infer_current_exe(base_addr: usize) -> OsString {
if let Ok(entries) = super::parse_running_mmaps::parse_maps() {
let opt_path = entries
.into_iter()
.find(|e| e.ip_matches(base_addr) && !e.pathname.is_empty())
.find(|e| e.ip_matches(base_addr) && e.pathname.len() > 0)
.map(|e| e.pathname);
if let Some(path) = opt_path {
return path;
Expand Down

0 comments on commit b3680fb

Please sign in to comment.