提交 6f0e3351 编写于 作者: X xionglei6

fix: codex

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 2cb3f075
......@@ -130,7 +130,7 @@ const char *AclGetSerial(void)
int ret = instance.GetSerialID(result);
if (ret == 0) {
ret = strcpy_s(serialNumber, sizeof(serialNumber), result.c_str());
DINFO_CHECK(ret == 0, return -1, "Failed to copy");
DINFO_CHECK(ret == 0, return nullptr, "Failed to copy");
}
DINFO_LOGI("GetSerial %s", serialNumber);
return serialNumber;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册