Bug 152938

Summary: ckermit-8.0.211-9: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Marian Jancar <mjancar>
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-02-22 21:56:55 UTC
I just tried to compile package ckermit-8.0.211-9 with a prerelease version
4.2 of the GNU C compiler.

It said

ckuus6.c:2071: warning: "xx" is used uninitialized in this function

The source code is

            if (!xx) {

It seems clear from the source code that local variable "xx" is only
initialised if ndialpxx is non-zero.

Suggest initialise local variable "xx" at its declaration.
Comment 1 Anna Maresova 2006-02-27 16:37:48 UTC
fixed