Bug 114253 - used before set ?
used before set ?
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: gnome-games (Show other bugs)
1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Christopher Aillon
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-01-25 08:48 EST by d.binderman
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-08-26 02:24:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2004-01-25 08:48:17 EST
Description of problem:

I just tried to compile package gnome-games-2.4.0-3, from Redhat
Fedora Core 1.

The compiler said

1.

gnotravex.c(1321): remark #592: variable "size" is used before its
value is set

The source code is

  gint x, y, size = size;
  for (y = 0; y < size; y++)

Clearly broken code to set a variable to it's own un-initialised value.

Suggest code re-work.

2.

gnotravex.c(1374): remark #592: variable "size" is used before its
value is set

The source code is

  gint x1, y1, x2 = 0, y2 = 0, x, y, size = size;

Duplicate.



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


How reproducible:


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


Expected results:


Additional info:
Comment 1 Richard Hoelscher 2004-04-16 17:39:09 EDT
Outside of Fedora, this problem was fixed with the release of
gnome-games 2.4.1
http://bugs.gnome.org/show_bug.cgi?id=122307

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