Skip to content
Snippets Groups Projects
Commit 61aeb448 authored by Sergej Schumilo's avatar Sergej Schumilo
Browse files

remove redundant access() call

parent d213071e
Branches
Tags
No related merge requests found
...@@ -1390,10 +1390,8 @@ void remove_nyx_tmp_workdir(afl_forkserver_t *fsrv, char* nyx_out_dir_path) { ...@@ -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)) {
if (rmdir(nyx_out_dir_path)) { WARNF("Unable to remove nyx workdir (%s)", nyx_out_dir_path);
WARNF("Unable to remove nyx workdir (%s)", nyx_out_dir_path);
}
} }
ck_free(workdir_path); ck_free(workdir_path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment