Red Hat Bugzilla – Bug 136147
local variable used before set
Last modified: 2007-11-30 17:10:52 EST
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):
Steps to Reproduce:
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
This problem has been fixed on diskdumputils-0.6.4-0.
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.