未验证 提交 a9edb653 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!767 [HUST CSE] fs/ntfs3: Aolve errors caused by uninitialized variables

Merge Pull Request from: @lyyue233 
 
issue:
[#I72XT8](https://gitee.com/openeuler/kernel/issues/I72XT8)
Uninitialized variables can cause various errors in a program, such as unexpected behavior, segmentation faults, or even security vulnerabilities.

To avoid these errors, we should always initialize variables before using them.Initialize variable “ err ” to address potential issues. 
 
Link:https://gitee.com/openeuler/kernel/pulls/767 

Reviewed-by: Kevin Zhu <zhukeqian1@huawei.com> 
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
Acked-by: Zheng Zengkai <zhengzengkai@huawei.com> 
......@@ -1215,7 +1215,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
u8 bytes_per_off;
char *addr;
struct page *page;
int i, err;
int i, err = 0;
__le32 *off32;
__le64 *off64;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册