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

This commit is contained in:
Shengliang Guan 2020-07-17 02:30:50 +00:00
parent a11c44b1dc
commit 5d522982cd
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 = malloc(pCols->bufSize);
pCols->buf = calloc(pCols->bufSize);
if (pCols->buf == NULL) {
free(pCols);
return NULL;