[check return value]

This commit is contained in:
lihui 2019-12-12 16:00:27 +08:00
parent 24f6170b64
commit b473ba8ecc
1 changed files with 4 additions and 0 deletions

View File

@ -328,6 +328,10 @@ int taosSendSimpleRsp(void *thandle, char rsptype, char code) {
} }
pStart = taosBuildRspMsgWithSize(thandle, rsptype, 32); pStart = taosBuildRspMsgWithSize(thandle, rsptype, 32);
if (pStart == NULL) {
tError("build rsp msg error, return null prt");
return -1;
}
pMsg = pStart; pMsg = pStart;
*pMsg = code; *pMsg = code;