about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-03 00:37:56 +0100
committervan Hauser <vh@thc.org>2021-01-03 00:37:56 +0100
commit1857df8d06c48b7d0bf99eee5dea2de595cdf4c5 (patch)
treed55368fca3c60219a39b33e3e36d5864ecfa055d /src
parent3c88de565a9074f202aeef92416472d17b82d697 (diff)
downloadafl++-1857df8d06c48b7d0bf99eee5dea2de595cdf4c5.tar.gz
cleanup
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-redqueen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-redqueen.c b/src/afl-fuzz-redqueen.c
index 37d66aef..df215e9c 100644
--- a/src/afl-fuzz-redqueen.c
+++ b/src/afl-fuzz-redqueen.c
@@ -802,13 +802,13 @@ u8 input_to_state_stage(afl_state_t *afl, u8 *orig_buf, u8 *buf, u32 len,
                         u64 exec_cksum) {
 
   u8 r = 1;
-  if (afl->orig_cmp_map == NULL) {
+  if (unlikely(!afl->orig_cmp_map)) {
 
     afl->orig_cmp_map = ck_alloc_nozero(sizeof(struct cmp_map));
 
   }
 
-  if (afl->pass_stats == NULL) {
+  if (unlikely(!afl->pass_stats)) {
 
     afl->pass_stats = ck_alloc(sizeof(struct afl_pass_stat) * CMP_MAP_W);