提交 ad7521bf 编写于 作者: S SloveZT

fix reviewBot

上级 4ecebab3
...@@ -107,8 +107,8 @@ static BOOL PutKVs(int num, const char* key, const char* content) ...@@ -107,8 +107,8 @@ static BOOL PutKVs(int num, const char* key, const char* content)
memset_s(&value, sizeof(value), 0, sizeof(value)); memset_s(&value, sizeof(value), 0, sizeof(value));
value.num = i; value.num = i;
int ret = strcpy_s(value.content, sizeof(value.content), content); int ret = strcpy_s(value.content, sizeof(value.content), content);
EXPECT_EQ(0, ret); TEST_ASSERT_EQUAL_INT(0, ret);
status = DBM_Put(g_KVStoreHandle, keytemp, (void*)&value, sizeof(value)); status = DBM_Put(g_KVStoreHandle, keytemp, (void*)&value, sizeof(value));
if (i <= MAX_KEY_NUM_TEST) { if (i <= MAX_KEY_NUM_TEST) {
...@@ -159,8 +159,9 @@ static BOOL GetKVs(int num, const char* key, const char* content) ...@@ -159,8 +159,9 @@ static BOOL GetKVs(int num, const char* key, const char* content)
memset_s(&value, sizeof(value), 0, sizeof(value)); memset_s(&value, sizeof(value), 0, sizeof(value));
value.num = loop; value.num = loop;
int ret = strcpy_s(value.content, sizeof(value.content), content);
EXPECT_EQ(0, ret); int ret = strcpy_s(value.content, sizeof(value.content), content);
TEST_ASSERT_EQUAL_INT(0, ret);
memset_s(&value1, sizeof(value1), 0, sizeof(value1)); memset_s(&value1, sizeof(value1), 0, sizeof(value1));
unsigned int realValLen = 0; unsigned int realValLen = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册