Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 159637 - local variable used before set
local variable used before set
Product: Fedora
Classification: Fedora
Component: magma-plugins (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Lon Hohberger
Depends On:
  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:
Last Closed: 2005-10-07 12:44:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:777 normal SHIPPED_LIVE magma-plugins bug fix update 2005-10-07 00:00:00 EDT

  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 

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

How reproducible:

Steps to Reproduce:
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
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.


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