Bug 136147 - local variable used before set
local variable used before set
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: diskdumputils (Show other bugs)
3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Akira Imamura
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-10-18 07:44 EDT by David Binderman
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version: RHEA-2005-264
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-05-18 11:44:07 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 2004-10-18 07:44:40 EDT
Description of problem:

I just tried to compile package diskdumputils-0.6.1-1 from package
Redhat Fedora Core 3 Test 3.

The compiler said

savecore.c(335): remark #592: variable "last_time" is used before its
value is set

The source code is

        if (tm - last_time < 1)

I agree with the compiler. Maybe last_time should be declared static ?


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 Imamura 2004-10-19 10:33:10 EDT
Thank you for your report.
I was able to confirm the problem that you reported. As you pointed 
out, last_time should be a static variable. I plan to modify it 
shortly.
Comment 2 Akira Imamura 2004-12-08 16:06:30 EST
This problem has been fixed on diskdumputils-0.6.4-0.
Comment 3 Tim Powers 2005-05-18 11:44:07 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/RHEA-2005-263.html

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