未验证 提交 db8305aa 编写于 作者: O openharmony_ci 提交者: Gitee

!1861 FIX:回退udid设置默认值

Merge pull request !1861 from cheng_jinsong/0328_back
...@@ -28,7 +28,6 @@ extern "C" { ...@@ -28,7 +28,6 @@ extern "C" {
int AclGetDevUdid(char *udid, int size) int AclGetDevUdid(char *udid, int size)
{ {
const char* defaultVal = "1234567890";
if (udid == nullptr || size < UDID_LEN) { if (udid == nullptr || size < UDID_LEN) {
return SYSPARAM_INVALID_INPUT; return SYSPARAM_INVALID_INPUT;
} }
...@@ -39,8 +38,6 @@ int AclGetDevUdid(char *udid, int size) ...@@ -39,8 +38,6 @@ int AclGetDevUdid(char *udid, int size)
int ret = instance.GetUdid(result); int ret = instance.GetUdid(result);
if (ret == 0) { if (ret == 0) {
ret = strcpy_s(udid, size, result.c_str()); ret = strcpy_s(udid, size, result.c_str());
} else {
ret = strcpy_s(udid, size, defaultVal);
} }
#else #else
int ret = GetDevUdid_(udid, size); int ret = GetDevUdid_(udid, size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册