From 126d1f1cd14c6bb1fb59159965045f02d98d1b43 Mon Sep 17 00:00:00 2001 From: Rishi Ranjan <43873720+rish9101@users.noreply.github.com> Date: Sun, 15 Mar 2020 22:59:23 +0530 Subject: 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 --- src/afl-fuzz-cmplog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/afl-fuzz-cmplog.c') 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); -- cgit 1.4.1