fix:core dump if stable name is null in SVCreateTbReq

This commit is contained in:
wangmm0220 2022-07-13 17:16:34 +08:00
parent cd051d40c3
commit a015aca162
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ SSubmitReq* tdBlockToSubmit(const SArray* pBlocks, const STSchema* pTSchema, boo
SVCreateTbReq createTbReq = {0};
createTbReq.name = buildCtbNameByGroupId(stbFullName, pDataBlock->info.groupId);
createTbReq.ctb.name = strdup(stbFullName);
createTbReq.flags = 0;
createTbReq.type = TSDB_CHILD_TABLE;
createTbReq.ctb.suid = suid;