From 280374f7399e9e93f6e04a35fa1cb5e684f9a5d4 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 20 Apr 2020 22:07:47 +0200 Subject: clang warning fixed --- src/afl-showmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/afl-showmap.c') diff --git a/src/afl-showmap.c b/src/afl-showmap.c index 63b54851..af6c2b1a 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -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); -- cgit 1.4.1