Bug 159392 - 2 * local variable used before set
2 * local variable used before set
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: iiimf (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Akira TAGOH
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-02 08:11 EDT by David Binderman
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: iiimf-12.2-5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-26 23:53:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2005-06-02 08:11:24 EDT
Description of problem:

I just tried to compile package iiimf-12.2-4 from Redhat
Fedora Core development tree with the most excellent Intel C compiler.

The compiler said

1.

EIMIL.c(2702): remark #592: variable "e" is used before its value is set

The source code is

    {
        Ebyte *s, *e;

        for (s = pps->start;(s < e && EIMIL_isspace(*s));s++);

Clearly broken code. Suggest initialise local variable "e" before
first use.

2.

xfactory.c(498): remark #592: variable "result" is used before its value is set

The source code is

  match = XftFontMatch(display, DefaultScreen(display), xfp, result);

More clearly broken code. Suggest initialise local variable "result"
before first use.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Akira TAGOH 2005-06-10 07:38:34 EDT
committed the changes in CVS. will be fixed in next build.
Comment 2 Akira TAGOH 2005-06-16 08:14:40 EDT
Fixed in 12.2-5.
Comment 3 Lawrence Lim 2005-06-26 23:53:32 EDT
Tested with iiimf-12.2-5, confirmed both have been updated.

1)
{
        Ebyte *s, *e = pps->end;

        for (s = pps->start;(s < e && EIMIL_isspace(*s));s++);

2) 
match = XftFontMatch(display, DefaultScreen(display), xfp, &result);

Note You need to log in before you can comment on or make changes to this bug.