提交 5d522982 编写于 作者: S Shengliang Guan

[TD-948] Conditional jump or move depends on uninitialised value

上级 a11c44b1
......@@ -318,7 +318,7 @@ SDataCols *tdNewDataCols(int maxRowSize, int maxCols, int maxRows) {
pCols->maxPoints = maxRows;
pCols->bufSize = maxRowSize * maxRows;
pCols->buf = malloc(pCols->bufSize);
pCols->buf = calloc(pCols->bufSize);
if (pCols->buf == NULL) {
free(pCols);
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册