fix unitiailized error

This commit is contained in:
Hongze Cheng 2020-07-06 16:35:13 +08:00
parent 83eef732d7
commit 6e06701aad
1 changed files with 1 additions and 0 deletions

View File

@ -2173,6 +2173,7 @@ static void ensureOutputBuffer(SQueryRuntimeEnv* pRuntimeEnv, SDataBlockInfo* pB
if (tmp == NULL) { // todo handle the oom
assert(0);
} else {
memset(tmp + sizeof(tFilePage) + bytes * pRec->rows, 0, (newSize - pRec->rows) * bytes);
pQuery->sdata[i] = (tFilePage *)tmp;
}