mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-27 00:20:44 +00:00
codecheck3
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
efd44053df
commit
2b025380a4
@ -457,6 +457,10 @@ bool GetOsInfoFromDM(const std::string &dmInfoEx, int32_t &osType, std::string &
|
||||
|
||||
osType = cJSON_GetObjectItemCaseSensitive(dataJson, PARAM_KEY_OS_TYPE)->valueint;
|
||||
osVersion = std::string(cJSON_GetObjectItemCaseSensitive(dataJson, PARAM_KEY_OS_VERSION)->valuestring);
|
||||
if (!cJSON_IsNumber(osType)) {
|
||||
HILOGE("osType is invalid ");
|
||||
break;
|
||||
}
|
||||
isSuccess = true;
|
||||
} while (false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user