Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 136147 - local variable used before set
local variable used before set
Product: Fedora
Classification: Fedora
Component: diskdumputils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Akira Imamura
Depends On:
  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:
Last Closed: 2005-05-18 11:44:07 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 RHEA-2005:263 low SHIPPED_LIVE diskdumputils enhancement update 2005-05-18 00:00:00 EDT
Red Hat Product Errata RHEA-2005:264 low SHIPPED_LIVE diskdumputils enhancement update 2005-06-09 00:00:00 EDT

  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:
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 
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.


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