Bug 157411

Summary: resample-1.7-118: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED 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-11 08:56:28 UTC
I just tried to compile package resample-1.7-118 with the Intel C compiler.

It said

audio.c(2551): warning #592: variable "level" is used before its value is set

The source code is

	sprintf(strbuf,"OSS version: %x.%x.%x\n",(level>>16)&0xff,(level>>8)&0xff,level&0xff);

Suggest initialise local variable "level" before first use.
Comment 1 Takashi Iwai 2006-03-13 14:10:31 UTC
Thanks, submitted the fixed package.