From b1daca7f82f8c50a81600c884a3f7d2aa3f367cd Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Fri, 8 Apr 2022 16:11:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=8A=E8=AD=A6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: If3c36a8b2d3ad3c825bc3e5ef68efa8896d54884 --- components/shell/src/base/shcmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/shell/src/base/shcmd.c b/components/shell/src/base/shcmd.c index ffc32376..0440ec70 100644 --- a/components/shell/src/base/shcmd.c +++ b/components/shell/src/base/shcmd.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. + * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -196,7 +196,7 @@ LITE_OS_SEC_TEXT_MINOR VOID OsCmdAscendingInsert(CmdItemNode *cmd) } for (cmdItem = LOS_DL_LIST_ENTRY((&cmdInfo.cmdList.list)->pstPrev, CmdItemNode, list); - &cmdItem->list != &(cmdInfo.cmdList.list); ) { + &cmdItem->list != &(cmdInfo.cmdList.list);) { cmdNext = LOS_DL_LIST_ENTRY(cmdItem->list.pstPrev, CmdItemNode, list); if (&cmdNext->list != &(cmdInfo.cmdList.list)) { if ((strncmp(cmdItem->cmd->cmdKey, cmd->cmd->cmdKey, strlen(cmd->cmd->cmdKey)) >= 0) &&