Bug 132679 - local variable used before set
Summary: local variable used before set
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pyxf86config
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Adam Jackson
QA Contact:
URL:
Whiteboard:
Depends On: 1419906 1422610
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-15 19:02 UTC by d.binderman
Modified: 2017-02-15 16:48 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-08-21 21:56:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2004-09-15 19:02:18 UTC
Description of problem:

I just tried to compile package pyxf86config-0.3.18-3 from
Redhat Fedora Core 3 Test 1.

The compiler said

pyxf86conf.c(2079): remark #592: variable "item" is used before its
value is set

The source code is

      range.lo = (float)PyInt_AsLong(item);

but the previous mention of item is

  PyObject *item;

I don't know what the fix is for this.



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Adam Jackson 2006-04-19 17:54:18 UTC
still valid in 0.3.24.

Comment 2 Matthew Miller 2006-07-10 21:01:38 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!


Comment 3 Adam Jackson 2006-08-21 21:56:35 UTC
Fixed in 0.3.28-1.


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