提交 e01fc30a 编写于 作者: wmmhello's avatar wmmhello

[TD-5992}<fix>:optimize

上级 13ea775c
...@@ -478,7 +478,7 @@ static setConfRet taos_set_config_imp(const char *config){ ...@@ -478,7 +478,7 @@ static setConfRet taos_set_config_imp(const char *config){
if(!taosReadConfigOption(item->string, item->valuestring, NULL, NULL, TAOS_CFG_CSTATUS_OPTION, TSDB_CFG_CTYPE_B_CLIENT)){ if(!taosReadConfigOption(item->string, item->valuestring, NULL, NULL, TAOS_CFG_CSTATUS_OPTION, TSDB_CFG_CTYPE_B_CLIENT)){
ret.retCode = SET_CONF_RET_ERR_PART; ret.retCode = SET_CONF_RET_ERR_PART;
if (strlen(ret.retMsg) == 0){ if (strlen(ret.retMsg) == 0){
snprintf(ret.retMsg, RET_MSG_LENGTH - 1, "part error|%s", item->string); snprintf(ret.retMsg, RET_MSG_LENGTH, "part error|%s", item->string);
}else{ }else{
int leftSize = RET_MSG_LENGTH - 1 - strlen(ret.retMsg); int leftSize = RET_MSG_LENGTH - 1 - strlen(ret.retMsg);
leftSize = leftSize >= 0 ? leftSize : 0; leftSize = leftSize >= 0 ? leftSize : 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册