提交 c5087aa4 编写于 作者: H Haojun Liao

[td-225] fix compiler error.

上级 2e9fbee4
...@@ -1722,14 +1722,14 @@ SArray* tscCloneVgroupTableInfo(SArray* pVgroupTables) { ...@@ -1722,14 +1722,14 @@ SArray* tscCloneVgroupTableInfo(SArray* pVgroupTables) {
for (size_t i = 0; i < num; i++) { for (size_t i = 0; i < num; i++) {
SVgroupTableInfo* pInfo = taosArrayGet(pVgroupTables, i); SVgroupTableInfo* pInfo = taosArrayGet(pVgroupTables, i);
SVgroupTableInfo info = {{.vgId = 0, .epAddr = {0}, .numOfEps = 0}, .itemList = NULL}; SVgroupTableInfo info;
info.vgInfo = pInfo->vgInfo; memset(&info, 0, sizeof(SVgroupTableInfo));
info.vgInfo = pInfo->vgInfo;
for(int32_t j = 0; j < pInfo->vgInfo.numOfEps; ++j) { for(int32_t j = 0; j < pInfo->vgInfo.numOfEps; ++j) {
info.vgInfo.epAddr[j].fqdn = strdup(pInfo->vgInfo.epAddr[j].fqdn); info.vgInfo.epAddr[j].fqdn = strdup(pInfo->vgInfo.epAddr[j].fqdn);
} }
info.itemList = taosArrayClone(pInfo->itemList); info.itemList = taosArrayClone(pInfo->itemList);
taosArrayPush(pa, &info); taosArrayPush(pa, &info);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册