This commit is contained in:
Shengliang Guan 2020-07-17 11:19:08 +08:00
parent 83ea39c5ff
commit 32d8837bd2
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ SDataCols *tdNewDataCols(int maxRowSize, int maxCols, int maxRows) {
pCols->maxPoints = maxRows;
pCols->bufSize = maxRowSize * maxRows;
pCols->buf = calloc(pCols->bufSize);
pCols->buf = calloc(1, pCols->bufSize);
if (pCols->buf == NULL) {
free(pCols);
return NULL;