fix(tsdb): fix invalid return value.
This commit is contained in:
parent
a8433ec6eb
commit
80a7b7da5f
|
@ -656,7 +656,7 @@ int32_t initBlockIterator(STsdbReader* pReader, SDataBlockIter* pBlockIter, int3
|
|||
}
|
||||
|
||||
void* p = taosArrayAddAll(pBlockIter->blockList, pTableScanInfo->pBlockList);
|
||||
if (p != NULL) {
|
||||
if (p == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue