Bug 158611

Summary: e2fsprogs-1.38-19: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Hendrik Vogelsang <hvogel>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-03-16 12:42:24 UTC
I just tried to compile package e2fsprogs-1.38-19 with the Intel C compiler.

It said

ext2.c(427): warning #592: variable "bh2" is used before its value is set

The source code is

                struct ext2_buffer_head *bh2;
                __u32                   *udata2;
                int                      j;

                if (!udata[i]) {
                        ext2_brelse(bh, 0);
                        ext2_brelse(bh2, 0);

I agree with the compiler.  Suggest code rework.
Comment 1 Hendrik Vogelsang 2006-03-17 11:48:54 UTC
report this upstream. e2fsprogs is maintained