diff options
author | Sergej Schumilo <sergej@schumilo.de> | 2023-04-16 05:19:09 +0200 |
---|---|---|
committer | Sergej Schumilo <sergej@schumilo.de> | 2023-04-16 05:19:09 +0200 |
commit | 61aeb4486310b4aab66558bd21ead8b6e35501e2 (patch) | |
tree | de3fd836d0984baccb13528ace71479aa3cb77c0 /src | |
parent | d213071e13b1720d06e1a960015db198f363aab5 (diff) | |
download | afl++-61aeb4486310b4aab66558bd21ead8b6e35501e2.tar.gz |
remove redundant access() call
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/afl-common.c b/src/afl-common.c index fe0db94d..5692e277 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -1390,10 +1390,8 @@ void remove_nyx_tmp_workdir(afl_forkserver_t *fsrv, char* nyx_out_dir_path) { } } - if (access(nyx_out_dir_path, R_OK) == 0) { - if (rmdir(nyx_out_dir_path)) { - WARNF("Unable to remove nyx workdir (%s)", nyx_out_dir_path); - } + if (rmdir(nyx_out_dir_path)) { + WARNF("Unable to remove nyx workdir (%s)", nyx_out_dir_path); } ck_free(workdir_path); |