fix dumb unlink issue

This commit is contained in:
Nick Chan committed 2023-02-06 11:27:26 +08:00
1 parent 6127bdb3d6
commit e3aad1a249
1 file changed
+1 -1
+1 -1
View File
@@ -75,8 +75,8 @@ checkra1n_exec: {};
} }
LOG(LOG_VERBOSE2, "%s spawned successfully", checkra1n_path); LOG(LOG_VERBOSE2, "%s spawned successfully", checkra1n_path);
sleep(2); sleep(2);
if (ext_checkra1n != NULL) unlink(checkra1n_path);
if (ext_checkra1n == NULL) { if (ext_checkra1n == NULL) {
unlink(checkra1n_path);
free(checkra1n_path); free(checkra1n_path);
checkra1n_path = NULL; checkra1n_path = NULL;
} }