whitescan safety hole: mainly uninitialized variables

This commit is contained in:
xy0
2022-04-01 16:52:41 +08:00
committed by LINxiansheng
parent b9fc792163
commit bf5d73125b
7 changed files with 14 additions and 13 deletions

View File

@ -954,7 +954,7 @@ int ObExprJsonValue::cast_to_year(ObIJsonBase *j_base, uint8_t &val)
int ObExprJsonValue::cast_to_float(ObIJsonBase *j_base, ObObjType dst_type, float &val)
{
INIT_SUCC(ret);
double tmp_val;
double tmp_val = 0;
if (OB_ISNULL(j_base)) {
ret = OB_ERR_NULL_VALUE;