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

[td-13039] fix bug.

上级 c4ace188
...@@ -244,6 +244,8 @@ void assignExprInfo(SExprInfo* dst, const SExprInfo* src) { ...@@ -244,6 +244,8 @@ void assignExprInfo(SExprInfo* dst, const SExprInfo* src) {
if (src->base.numOfCols > 0) { if (src->base.numOfCols > 0) {
dst->base.pColumns = calloc(src->base.numOfCols, sizeof(SColumn)); dst->base.pColumns = calloc(src->base.numOfCols, sizeof(SColumn));
memcpy(dst->base.pColumns, src->base.pColumns, sizeof(SColumn) * src->base.numOfCols); memcpy(dst->base.pColumns, src->base.pColumns, sizeof(SColumn) * src->base.numOfCols);
} else {
dst->base.pColumns = NULL;
} }
memset(dst->base.param, 0, sizeof(SVariant) * tListLen(dst->base.param)); memset(dst->base.param, 0, sizeof(SVariant) * tListLen(dst->base.param));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册