Bug 148237

Summary: xffm-4.2.3-2: local variable used before set
Product: [openSUSE] SUSE Linux 10.1 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Pavel Nemec <pnemec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-02-04 18:04:10 UTC
I just tried to compile package xffm-4.2.3-2 with the GNU C compiler.

It said

icons.c:300: warning: "scale" is used uninitialized in this function

The source code is

    if (ph <= 0 || pw <= 0 || scale <=0) {

I agree with the compiler. Suggest initialise local variable "scale"
before first use.
Comment 1 Pavel Nemec 2006-02-07 11:30:51 UTC
Fixed.
Thank you for reporting