about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-17 14:27:28 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-17 14:27:28 +0200
commit49753eb2d0af4fbfb6aba92572f621424fc6189b (patch)
tree4474887c1593d6479bfaa227fd99ca786620ab53
parentc9605f22514181caf7823e382a94c2bcf59e5a95 (diff)
downloadafl++-49753eb2d0af4fbfb6aba92572f621424fc6189b.tar.gz
unused var
-rw-r--r--include/afl-fuzz.h3
-rw-r--r--src/afl-fuzz-state.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/include/afl-fuzz.h b/include/afl-fuzz.h
index fdfe3789..87e6dcff 100644
--- a/include/afl-fuzz.h
+++ b/include/afl-fuzz.h
@@ -610,8 +610,7 @@ typedef struct afl_state {
 
   /* this is a fixed buffer of size map_size that can be used by any function if they do not call another function */
   u8 *   map_tmp_buf;
-  size_t map_tmp_len;
-  
+
 } afl_state_t;
 
 /* A global pointer to all instances is needed (for now) for signals to arrive
diff --git a/src/afl-fuzz-state.c b/src/afl-fuzz-state.c
index 0904604c..de7a4481 100644
--- a/src/afl-fuzz-state.c
+++ b/src/afl-fuzz-state.c
@@ -108,7 +108,6 @@ void afl_state_init(afl_state_t *afl, uint32_t map_size) {
   afl->clean_trace_custom = ck_alloc(map_size);
   afl->first_trace = ck_alloc(map_size);
   afl->map_tmp_buf = ck_alloc(map_size);
-  afl->map_tmp_len = map_size;
 
   afl->fsrv.use_stdin = 1;
   afl->fsrv.map_size = map_size;