Skip to content
Snippets Groups Projects
Commit c0eaa386 authored by 최재웅's avatar 최재웅
Browse files

Fix bug that shows 'command not found' when type only whitespase.

parent 72930f64
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ int main()
mysh_parse_command(buf, &argc, &argv);
if (strcmp(buf, "\n") == 0) {
if (strcmp(argv[0], "") == 0) {
goto release_and_continue;
} else if (strcmp(argv[0], "cd") == 0) {
if (do_cd(argc, argv)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment