[msh] don't complain on empty command

Just branch out and no complain on command length == 0;
This commit is contained in:
Grissiom 2014-03-29 11:33:20 +08:00
parent 96d9fd8715
commit 0979328fb1
1 changed files with 3 additions and 0 deletions

View File

@ -292,6 +292,9 @@ int msh_exec(char* cmd, rt_size_t length)
length--;
}
if (length == 0)
return 0;
/* Exec sequence:
* 1. built-in command
* 2. module(if enabled)