about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-10-17 13:03:01 +0200
committervanhauser-thc <vh@thc.org>2021-10-17 13:03:01 +0200
commit8bc2b52f6579ab44f536d1ccb818acf37b047ec7 (patch)
tree26629c5d2651c78002786ee240e2d706fcfb396a
parent34f1074ba308e850feb08c51aad781f7d307a260 (diff)
downloadafl++-8bc2b52f6579ab44f536d1ccb818acf37b047ec7.tar.gz
format
-rw-r--r--src/afl-showmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index a04c1f5b..5df07bf2 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -243,10 +243,13 @@ static u32 write_results_to_file(afl_forkserver_t *fsrv, u8 *outfile) {
       (fsrv->last_run_timed_out || (!caa && child_crashed != cco))) {
 
     if (strcmp(outfile, "-")) {
+
       // create empty file to prevent error messages in afl-cmin
       fd = open(outfile, O_WRONLY | O_CREAT | O_EXCL, DEFAULT_PERMISSION);
       close(fd);
+
     }
+
     return ret;
 
   }