Skip to content

Commit 047c2b3

Browse files
committed
Fixes copy paste error
1 parent 2f2e9f9 commit 047c2b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/symbolize/gimli/parse_running_mmaps_unix.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,22 @@ impl FromStr for MapsEntry {
9595
}
9696

9797
let (perms_str, s) = s.trim().split_once(' ').unwrap_or((s, ""));
98-
if range_str.is_empty() {
98+
if perms_str.is_empty() {
9999
return Err("Couldn't find permissions");
100100
}
101101

102102
let (offset_str, s) = s.trim().split_once(' ').unwrap_or((s, ""));
103-
if range_str.is_empty() {
103+
if offset_str.is_empty() {
104104
return Err("Couldn't find offset");
105105
}
106106

107107
let (dev_str, s) = s.trim().split_once(' ').unwrap_or((s, ""));
108-
if range_str.is_empty() {
108+
if dev_str.is_empty() {
109109
return Err("Couldn't find dev");
110110
}
111111

112112
let (inode_str, s) = s.trim().split_once(' ').unwrap_or((s, ""));
113-
if range_str.is_empty() {
113+
if inode_str.is_empty() {
114114
return Err("Couldn't find inode");
115115
}
116116

0 commit comments

Comments
 (0)