Bug 136147

Summary: local variable used before set
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: diskdumputilsAssignee: Akira Imamura <aimamura>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: aimamura, ntachino
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEA-2005-264 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-18 15:44:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2004-10-18 11:44:40 UTC
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 14:33:10 UTC
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 21:06:30 UTC
This problem has been fixed on diskdumputils-0.6.4-0.

Comment 3 Tim Powers 2005-05-18 15:44:07 UTC
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