提交 0979328f 编写于 作者: G Grissiom

[msh] don't complain on empty command

Just branch out and no complain on command length == 0;
上级 96d9fd87
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册