about summary refs log tree commit diff
path: root/src/afl-fuzz-cmplog.c
diff options
context:
space:
mode:
authorRishi Ranjan <43873720+rish9101@users.noreply.github.com>2020-03-15 22:59:23 +0530
committerGitHub <noreply@github.com>2020-03-15 18:29:23 +0100
commit126d1f1cd14c6bb1fb59159965045f02d98d1b43 (patch)
tree64a12fc2222b766087f0edfd63c30acf27c19cf4 /src/afl-fuzz-cmplog.c
parent7685893cdbfd621b09b57a11c135347f692333cc (diff)
downloadafl++-126d1f1cd14c6bb1fb59159965045f02d98d1b43.tar.gz
Move afl-fuzz related env variables into afl_state_t (#252)
* Move afl-fuzz related env variables into afl_state_t

* Move the env variables assignment from fuzz_init and code Format

* Fix typo

* Remove redundant env variables from afl_env struct

* Rename function to read_afl_environment
Diffstat (limited to 'src/afl-fuzz-cmplog.c')
-rw-r--r--src/afl-fuzz-cmplog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-cmplog.c b/src/afl-fuzz-cmplog.c
index aa217a93..1600af53 100644
--- a/src/afl-fuzz-cmplog.c
+++ b/src/afl-fuzz-cmplog.c
@@ -89,7 +89,7 @@ void init_cmplog_forkserver(afl_state_t *afl) {
 
     setsid();
 
-    if (!get_afl_env("AFL_DEBUG_CHILD_OUTPUT")) {
+    if (!(afl->afl_env.afl_debug_child_output)) {
 
       dup2(afl->fsrv.dev_null_fd, 1);
       dup2(afl->fsrv.dev_null_fd, 2);