Bug 158071

Summary: xjdic-2.4-106: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: coolo
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: ---
Attachments: bugzilla-158071-local-variable-not-initialized.patch

Description David Binderman 2006-03-14 20:06:42 UTC
I just tried to compile package xjdic-2.4-106 with the Intel C compiler.

It said

xjdfrontend.c(1150): warning #592: variable "it" is used before its value is set

The source code is

        int32_t it;

        DicNum = CurrDic;
        khi = 0;
        klo = 0;
        vline[0] = 0;
        xjdserver (XJ_FIND, DicNum,it, strlen(vstr), vstr,
                &xjresp, &respos, &roff, &rlen, repstr, &DicLoc);

Suggest initialise local variable "it" before first use.
Comment 1 Mike Fabian 2006-03-15 15:29:42 UTC
FIXED (Submitted to STABLE).
Comment 2 Mike Fabian 2006-03-15 15:31:13 UTC
Created attachment 73041 [details]
bugzilla-158071-local-variable-not-initialized.patch

The patch used.
Comment 3 Mike Fabian 2006-03-15 15:33:50 UTC
Reported to upstream author.