[msh] don't complain on empty command
Just branch out and no complain on command length == 0;
This commit is contained in:
parent
96d9fd8715
commit
0979328fb1
|
@ -292,6 +292,9 @@ int msh_exec(char* cmd, rt_size_t length)
|
||||||
length--;
|
length--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (length == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Exec sequence:
|
/* Exec sequence:
|
||||||
* 1. built-in command
|
* 1. built-in command
|
||||||
* 2. module(if enabled)
|
* 2. module(if enabled)
|
||||||
|
|
Loading…
Reference in New Issue