diff --git a/services/firmware/check/include/firmware_icheck.h b/services/firmware/check/include/firmware_icheck.h index 16b34cc7063254eccd9006462d5b71761cd80d32..de3c45d77c7ebd35dedffc15b18c4f06c9847c85 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;