提交 fda2c07c 编写于 作者: C Christopher Hajas 提交者: Chris Hajas

Fix incorrect datatype in Backup code identified by Coverity

read_bytes will be negative if read() returns a negative value on error.
Therefore, this should be a signed int.
上级 2618229e
......@@ -2553,7 +2553,7 @@ writeToDDFileFromInput(struct ddboost_options *dd_options)
char *buf = NULL;
ddp_uint64_t rw_size = dd_boost_buf_size;
ddp_uint64_t total_bytes = 0;
ddp_uint64_t read_bytes = 0;
ddp_int64_t read_bytes = 0;
ddp_path_t path1 = {0};
char *full_path = NULL;
char *buf_iogroup = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册