Skip to content
Snippets Groups Projects
Commit a1f8a4b2 authored by lee ju yeon's avatar lee ju yeon
Browse files

Fix bug in main.c

exit command should go to release_and_exit label, but it went to release_and_continue.
parent dc2a5ef1
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ int main() ...@@ -29,7 +29,7 @@ int main()
fprintf(stderr, "pwd: Invalid arguments\n"); fprintf(stderr, "pwd: Invalid arguments\n");
} }
} else if (strcmp(argv[0], "exit") == 0) { } else if (strcmp(argv[0], "exit") == 0) {
goto release_and_continue; goto release_and_exit;
} else { } else {
fprintf(stderr, "%s: command not found\n", argv[0]); fprintf(stderr, "%s: command not found\n", argv[0]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment