mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
check for empty env var as well
This commit is contained in:
@ -715,7 +715,9 @@ char *get_afl_env(char *env) {
|
|||||||
|
|
||||||
char *val;
|
char *val;
|
||||||
|
|
||||||
if ((val = getenv(env)) != NULL) {
|
if ((val = getenv(env))) {
|
||||||
|
|
||||||
|
if (*val) {
|
||||||
|
|
||||||
if (!be_quiet) {
|
if (!be_quiet) {
|
||||||
|
|
||||||
@ -723,9 +725,13 @@ char *get_afl_env(char *env) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return val;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return val;
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1243,4 +1249,3 @@ s32 create_file(u8 *fn) {
|
|||||||
return fd;
|
return fd;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user