diff --git a/userprog/syscall_remove.c b/userprog/syscall_remove.c index 8b2d1f25afbc8ef74fe2fab7aea61b6f8418fb88..80dfe36c037fbf7948cd5ba23817847a5302ed87 100644 --- a/userprog/syscall_remove.c +++ b/userprog/syscall_remove.c @@ -17,7 +17,7 @@ void syscall_open(struct intr_frame *f) { // pop off first int argument from interrupt frame char* file_name = (void*)(*(int*)f->esp + 1); // Described in filesys.h, opens the file - if (filesys_remove(file_name); == false) { // Checking if file is empty or non-existent + if (filesys_remove(file_name) == false) { // Checking if file is empty or non-existent f->eax = false; // Returning a failure state return; }