提交 19975759 编写于 作者: S shenchai

fix memset to '0' for zerofill

上级 c0dff150
......@@ -107,7 +107,7 @@ static int copy_string(const ObObjCastParams &params,
} else {
int64_t zf = params.zf_info_->max_length_ - len;
if (zf > 0) {
MEMSET(buf, 0, zf);
MEMSET(buf, '0', zf);
MEMCPY(buf + zf, str, len);
len = str_len; // set string length
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册