This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 7c569fd9db [fix](s3_writer) init member's value to avoid undefined behavior (#21233) 7c569fd9db is described below commit 7c569fd9db084438e1f6ad97b664a7eaaea3a27c Author: Mingyu Chen <morning...@163.com> AuthorDate: Tue Jun 27 20:01:20 2023 +0800 [fix](s3_writer) init member's value to avoid undefined behavior (#21233) --- be/src/io/fs/s3_file_write_bufferpool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/io/fs/s3_file_write_bufferpool.h b/be/src/io/fs/s3_file_write_bufferpool.h index b69964b48e..660cbc8e8a 100644 --- a/be/src/io/fs/s3_file_write_bufferpool.h +++ b/be/src/io/fs/s3_file_write_bufferpool.h @@ -104,8 +104,8 @@ struct S3FileBuffer : public std::enable_shared_from_this<S3FileBuffer> { // caller of this buf could use this callback to do syncronization Callback _on_finish_upload = nullptr; Status _status; - size_t _offset; - size_t _size; + size_t _offset {0}; + size_t _size {0}; std::shared_ptr<std::iostream> _stream_ptr; // only served as one reserved buffer Slice _buf; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org