From 638809a8c5ea177f8d8a5fd458cfecf3fd99af74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=8F=8B=E6=9D=BE?= Date: Wed, 6 Nov 2024 09:57:25 +0000 Subject: [PATCH] =?UTF-8?q?codex=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹友松 --- services/firmware/check/include/firmware_icheck.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/firmware/check/include/firmware_icheck.h b/services/firmware/check/include/firmware_icheck.h index 16b34cc7..de3c45d7 100644 --- a/services/firmware/check/include/firmware_icheck.h +++ b/services/firmware/check/include/firmware_icheck.h @@ -125,7 +125,7 @@ private: cJSONPtr root(cJSON_Parse(buffer.data()), cJSON_Delete); ENGINE_CHECK(root != nullptr, return -1, "Error get root"); cJSON *item = cJSON_GetObjectItem(root.get(), "searchStatus"); - ENGINE_CHECK(root != nullptr, return -1, "Error get searchStatus"); + ENGINE_CHECK(item != nullptr, return -1, "Error get searchStatus"); if (!cJSON_IsNumber(item)) { FIRMWARE_LOGE("Error json parse"); return -1; -- Gitee