Bug 159637 - local variable used before set
local variable used before set
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: magma-plugins (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Lon Hohberger
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-06 09:31 EDT by David Binderman
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2005-777
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-07 12:44:24 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-06 09:31:16 EDT
Description of problem:

I just tried to compile package magma-plugins-1.0-0.pre18.3 from Redhat
Fedora Core development tree with the most excellent Intel C compiler.

The compiler said

sm.c(412): remark #592: variable "ret" is used before its value is set

The source code is

        return ret;

Clearly broken code. Suggest initialise local variable "ret" 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 Lon Hohberger 2005-07-20 11:53:36 EDT
How about removing it entirely, since it's never used except in the return
statement?
Comment 2 Lon Hohberger 2005-07-28 17:26:22 EDT
Fix in CVS as of 7/20
Comment 3 Red Hat Bugzilla 2005-10-07 12:44:24 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-777.html

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