提交 7582b7e4 编写于 作者: H Haojun Liao

[td-1373]

上级 204ba970
......@@ -151,8 +151,11 @@ void tVariantAssign(tVariant *pDst, const tVariant *pSrc) {
if (pSrc->nType == TSDB_DATA_TYPE_NCHAR) {
len = len * TSDB_NCHAR_SIZE;
}
pDst->pz = calloc(1, len);
char* p = realloc(pDst->pz, len);
assert(p);
memset(pDst->pz, 0, len);
memcpy(pDst->pz, pSrc->pz, len);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册