Bug 148237 - xffm-4.2.3-2: local variable used before set
Summary: xffm-4.2.3-2: local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 3
Hardware: All SUSE Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Pavel Nemec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-04 18:04 UTC by David Binderman
Modified: 2006-02-07 11:30 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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