diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-09-08 20:58:44 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-09-08 20:58:44 +0200 |
commit | eb9f323d7c0252c8cb4229181c8b22dbdf113759 (patch) | |
tree | 4139fd9b343dcdcec9cd8c71a8984d167ed2b00c /src/afl-fuzz-init.c | |
parent | fe98e2d760a343938de229a4253a151e3b7f7abb (diff) | |
parent | ab744abc4b3c90bee355807e7b6e40ba86f23e74 (diff) | |
download | afl++-eb9f323d7c0252c8cb4229181c8b22dbdf113759.tar.gz |
Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index a5ebbcd8..29c8c6fa 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -1775,7 +1775,6 @@ int check_main_node_exists(afl_state_t *afl) { void setup_dirs_fds(afl_state_t *afl) { u8 *tmp; - s32 fd; ACTF("Setting up output directories..."); @@ -1901,7 +1900,7 @@ void setup_dirs_fds(afl_state_t *afl) { /* Gnuplot output file. */ tmp = alloc_printf("%s/plot_data", afl->out_dir); - fd = open(tmp, O_WRONLY | O_CREAT | O_EXCL, 0600); + int fd = open(tmp, O_WRONLY | O_CREAT | O_EXCL, 0600); if (fd < 0) { PFATAL("Unable to create '%s'", tmp); } ck_free(tmp); |