enh: refactor return code

This commit is contained in:
Hongze Cheng 2024-07-30 10:42:28 +08:00
parent 235712b79e
commit 2c5743a370
2 changed files with 2 additions and 2 deletions

View File

@ -932,7 +932,7 @@ void taosLogCrashInfo(char *nodeType, char *pMsg, int64_t msgLen, int signum, vo
goto _return;
}
taosUnLockFile(pFile);
(void)taosUnLockFile(pFile);
}
_return:

View File

@ -320,7 +320,7 @@ char *strbetween(char *string, char *begin, char *end) {
int32_t size = (int32_t)(_end - _begin);
if (_end != NULL && size > 0) {
result = (char *)taosMemoryCalloc(1, size);
if (result) {
if (!result) {
return NULL;
}
memcpy(result, _begin + strlen(begin), size - +strlen(begin));