Bug 132483 - libwmf-0.2.8.2-95: 2 * local variable used before set
Summary: libwmf-0.2.8.2-95: 2 * local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Vladimir Nadvornik
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-05 23:10 UTC by David Binderman
Modified: 2006-01-26 18:07 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 2005-11-05 23:10:58 UTC
Hello there,

I just tried to compile package libwmf-0.2.8.2-95 with the GNU C compiler
version 4.1.

It said

1.

stream.c:288: warning: "max" is used uninitialized in this function

The source code is

	defstr->max = max;

I have had a look at the code, and I agree with the compiler. 
Suggest initialise local variable "max" before first use. 

2.

gd.c:771: warning: "p" is used uninitialized in this function

The source code is

	if (p != gdImageGetTransparent (im->tile))

I have had a look at the code, and I agree with the compiler. 
Suggest initialise local variable "p" before first use. 


BTW, the e-mail address of the author doesn't seem to work 
[ Caolan.McNamara@ul.ie ]
Comment 1 Vladimir Nadvornik 2006-01-26 18:07:48 UTC
fixed for 10.1