Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hkctkuy authored and hkctkuy committed Jul 14, 2023
1 parent 68e4c43 commit bd6b81a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions casr/src/bin/casr-cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ fn print_summary(dir: &Path, unique_crash_line: bool) {
for info in cluster_hash.values() {
if ubsan {
// /path/to/report.casrep: Description: crashline (path:line:column)
println!("{}: {}", info.0.last().unwrap(), info.0[0],);
println!("{}: {}", info.0.last().unwrap(), info.0[0]);
continue;
}
// Crash: /path/to/input or /path/to/report.casrep
Expand Down Expand Up @@ -936,7 +936,11 @@ fn process_report(report: &str, extension: &str) -> Option<(String, String, Stri
String::new()
};
let ubsan = if let Some(rep) = jreport.get("UbsanReport") {
!rep.as_array().unwrap().is_empty()
if let Some(rep) = rep.as_array() {
!rep.is_empty()
} else {
false
}
} else {
false
};
Expand Down

0 comments on commit bd6b81a

Please sign in to comment.