Bug 158071 - xjdic-2.4-106: local variable used before set
Summary: xjdic-2.4-106: local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-14 20:06 UTC by David Binderman
Modified: 2006-03-15 15:33 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
bugzilla-158071-local-variable-not-initialized.patch (375 bytes, patch)
2006-03-15 15:31 UTC, Mike Fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.