check for empty env var as well
MODIFY
src/afl-common.c
src/afl-common.c
@@ -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;
}
-

check for empty env var as well