about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-20 22:07:47 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-21 13:14:34 +0200
commitae524d856d77603ad44b2b51885eb4ad3a84272b (patch)
tree77f4e3eb077cbb4e12e8ca8d8dd149e919441980 /src/afl-showmap.c
parent9be4f9c055ca754c7b5890365d75c8864a2495eb (diff)
downloadafl++-ae524d856d77603ad44b2b51885eb4ad3a84272b.tar.gz
clang warning fixed
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c2
1 files changed, 2 insertions, 0 deletions
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);