mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-21 06:23:35 +08:00
[msh] don't complain on empty command
Just branch out and no complain on command length == 0;
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user