diff --git a/src/symbolize/gimli/libs_dl_iterate_phdr.rs b/src/symbolize/gimli/libs_dl_iterate_phdr.rs index 432e2f163..29b5add9a 100644 --- a/src/symbolize/gimli/libs_dl_iterate_phdr.rs +++ b/src/symbolize/gimli/libs_dl_iterate_phdr.rs @@ -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;