check for empty env var as well

This commit is contained in:
Ruben ten Hove
2022-06-18 02:35:31 +02:00
parent 60702fef7a
commit 0dd1c39b5a

View File

@ -715,7 +715,9 @@ char *get_afl_env(char *env) {
char *val;
if ((val = getenv(env)) != NULL) {
if ((val = getenv(env))) {
if (*val) {
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;
}