Hnp差异代码同步

Signed-off-by: 陈其文 <chenqiwen6@huawei.com>
This commit is contained in:
陈其文 2024-10-21 14:02:05 +08:00
parent 4c944b43b6
commit 7456492820

View File

@ -472,7 +472,7 @@ int HnpPackageInfoGet(const char *packageName, HnpPackageInfo **packageInfoOut,
cJSON *version = cJSON_GetObjectItem(hnpItem, "current_version");
cJSON *installVersion = cJSON_GetObjectItem(hnpItem, "install_version");
if (name == NULL || version == NULL || installVersion == NULL || !cJSON_IsString(name) ||
!cJSON_IsString(name) || !cJSON_IsString(version) || !cJSON_IsString(installVersion)) {
!cJSON_IsString(version) || !cJSON_IsString(installVersion)) {
continue;
}
hnpExist = HnpOtherPackageInstallCheck(name->valuestring, version->valuestring, hapIndex, json);