fix: coverity scan
This commit is contained in:
parent
9903bbc527
commit
020b71515a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue