mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
check for empty env var as well
This commit is contained in:
@ -715,17 +715,23 @@ char *get_afl_env(char *env) {
|
||||
|
||||
char *val;
|
||||
|
||||
if ((val = getenv(env)) != NULL) {
|
||||
if ((val = getenv(env))) {
|
||||
|
||||
if (!be_quiet) {
|
||||
if (*val) {
|
||||
|
||||
if (!be_quiet) {
|
||||
|
||||
OKF("Loaded environment variable %s with value %s", env, val);
|
||||
OKF("Loaded environment variable %s with value %s", env, val);
|
||||
|
||||
}
|
||||
|
||||
return val;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return val;
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
@ -1243,4 +1249,3 @@ s32 create_file(u8 *fn) {
|
||||
return fd;
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user