This commit is contained in:
Hongze Cheng 2022-05-27 14:18:59 +00:00
parent 806ba2cdce
commit b55331ca98
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ int32_t tTagToValArray(STag *pTag, SArray **ppArray) {
uint8_t *p = (uint8_t *)&pTag->idx[pTag->nTag];
STagVal tv;
(*ppArray) = taosArrayInit(pTag->nTag, sizeof(STagVal));
(*ppArray) = taosArrayInit(pTag->nTag + 1, sizeof(STagVal));
if (*ppArray == NULL) {
code = TSDB_CODE_OUT_OF_MEMORY;
goto _err;