We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ccd70 commit b3680fbCopy full SHA for b3680fb
src/symbolize/gimli/libs_dl_iterate_phdr.rs
@@ -21,7 +21,7 @@ fn infer_current_exe(base_addr: usize) -> OsString {
21
if let Ok(entries) = super::parse_running_mmaps::parse_maps() {
22
let opt_path = entries
23
.into_iter()
24
- .find(|e| e.ip_matches(base_addr) && !e.pathname.is_empty())
+ .find(|e| e.ip_matches(base_addr) && e.pathname.len() > 0)
25
.map(|e| e.pathname);
26
if let Some(path) = opt_path {
27
return path;
0 commit comments