From 86e1b42119916cc35f74d3b57ebd7241b913b7fc Mon Sep 17 00:00:00 2001 From: cheng_jinsong Date: Wed, 10 May 2023 07:31:39 +0000 Subject: [PATCH] =?UTF-8?q?bootevent=20strcmp=E5=9C=B0=E5=9D=80=E8=B6=8A?= =?UTF-8?q?=E7=95=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cheng_jinsong --- services/modules/bootevent/bootevent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/modules/bootevent/bootevent.c b/services/modules/bootevent/bootevent.c index 0cd66f48..4281c9dc 100755 --- a/services/modules/bootevent/bootevent.c +++ b/services/modules/bootevent/bootevent.c @@ -35,6 +35,9 @@ static ListNode bootEventList = {&bootEventList, &bootEventList}; static int BootEventParaListCompareProc(ListNode *node, void *data) { BOOT_EVENT_PARAM_ITEM *item = (BOOT_EVENT_PARAM_ITEM *)node; + if (strncmp(item->paramName, BOOT_EVENT_PARA_PREFIX, BOOT_EVENT_PARA_PREFIX_LEN) != 0) { + return -1; + } if (strcmp(item->paramName + BOOT_EVENT_PARA_PREFIX_LEN, (const char *)data) == 0) { return 0; } -- GitLab