fix: coverity scan

This commit is contained in:
Hongze Cheng 2022-10-24 09:09:45 +08:00
parent 9903bbc527
commit 020b71515a
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ static int metaAlterTableColumn(SMeta *pMeta, int64_t version, SVAlterTbReq *pAl
SSchemaWrapper *pSchema; SSchemaWrapper *pSchema;
int c; int c;
if (pAlterTbReq->colName == NULL) { if (pAlterTbReq->colName == NULL || pAlterTbReq->colNewName == NULL) {
terrno = TSDB_CODE_INVALID_MSG; terrno = TSDB_CODE_INVALID_MSG;
return -1; return -1;
} }