Bug 132483

Summary: libwmf-0.2.8.2-95: 2 * local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Vladimir Nadvornik <nadvornik>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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