!66 【轻量级 PR】:update apps/shell/src/shcmd.c.

Merge pull request !66 from 冷钦街/N/A
This commit is contained in:
openharmony_ci 2021-03-25 11:19:15 +08:00 committed by Gitee
commit 8472f4d774
1 changed files with 0 additions and 6 deletions

View File

@ -457,17 +457,11 @@ unsigned int OsCmdKeyShift(const char *cmdKey, char *cmdOut, unsigned int size)
int OsTabCompletion(char *cmdKey, unsigned int *len)
{
int count;
char *cmdMainStr = cmdKey;
if ((cmdKey == NULL) || (len == NULL)) {
return (int)SH_ERROR;
}
/* cut left space */
while (*cmdMainStr == 0x20) {
cmdMainStr++;
}
count = OsTabMatchFile(cmdKey, len);
return count;