remove redundant access() call

This commit is contained in:
Sergej Schumilo
2023-04-16 05:19:09 +02:00
parent d213071e13
commit 61aeb44863

View File

@ -1390,11 +1390,9 @@ 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);
}
}
ck_free(workdir_path);
ck_free(nyx_out_dir_path);