print OKF if an environment variable is successfully loaded - feebdack to this please ...

This commit is contained in:
van Hauser
2020-02-29 20:49:16 +01:00
parent 76ca6adbc5
commit 95322c11d9
11 changed files with 66 additions and 50 deletions

View File

@ -38,6 +38,7 @@
u8* target_path; /* Path to target binary */
extern u8 use_stdin;
extern u8 be_quiet;
void detect_file_args(char** argv, u8* prog_in) {
@ -313,3 +314,15 @@ void check_environment_vars(char** envp) {
}
char* get_afl_env(char* env) {
char* val;
if ((val = getenv(env)) != NULL)
if (!be_quiet)
OKF("Loaded environment variable %s with value %s\n", env, val);
return val;
}