diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index 12ea4ad78d18a5f2b09daabb71093c153d30aca7..a33da175dc9bfb52b262628f350a77a785c19058 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -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;