clang warning fixed

This commit is contained in:
Dominik Maier
2020-04-20 22:07:47 +02:00
parent ce15937717
commit 280374f739
2 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,8 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) {
u8 cco = !!getenv("AFL_CMIN_CRASHES_ONLY"),
caa = !!getenv("AFL_CMIN_ALLOW_ANY");
if (!outfile) { FATAL("Output filename not set (Bug in AFL++?)"); }
if (!strncmp(outfile, "/dev/", 5)) {
fd = open(outfile, O_WRONLY);