Unverified Commit a9edb653 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!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: default avatarKevin Zhu <zhukeqian1@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 6028d8a5 71004bc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1215,7 +1215,7 @@ int attr_wof_frame_info(struct ntfs_inode *ni, struct ATTRIB *attr,
	u8 bytes_per_off;
	u8 bytes_per_off;
	char *addr;
	char *addr;
	struct page *page;
	struct page *page;
	int i, err;
	int i, err = 0;
	__le32 *off32;
	__le32 *off32;
	__le64 *off64;
	__le64 *off64;