fixed tiny nitpicks

This commit is contained in:
Dominik Maier
2021-03-23 18:47:07 +01:00
parent 28f1e94ab9
commit 5fcd634f05
6 changed files with 21 additions and 18 deletions

View File

@ -1304,8 +1304,8 @@ int main(int argc, char **argv_orig, char **envp) {
}
u8 *extra_env = (u8 *)getenv("AFL_TARGET_ENV");
if (extra_env && !extract_and_set_env(extra_env)) {
if (afl->afl_env.afl_target_env &&
!extract_and_set_env(afl->afl_env.afl_target_env)) {
FATAL("Bad value of AFL_TARGET_ENV");