Skip to content

Commit 41ff743

Browse files
authored
Fix incrementing found_objective(AFLplusplus#2139)
1 parent 382673b commit 41ff743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libafl/src/corpus/testcase.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ where
322322

323323
/// Adds one objectives to the `objectives_found` counter. Mostly called from crash handler or executor.
324324
pub fn found_objective(&mut self) {
325-
let _ = self.objectives_found.saturating_add(1);
325+
self.objectives_found = self.objectives_found.saturating_add(1);
326326
}
327327
}
328328

0 commit comments

Comments
 (0)