vcd coverity whining

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2022-11-04 09:33:03 -07:00
parent 65ac35c87f
commit e3bd330756
3 changed files with 6 additions and 1 deletions

View File

@ -78,6 +78,7 @@ ReadVcdActivities::ReadVcdActivities(const char *filename,
filename_(filename),
scope_(scope),
vcd_(sta),
clk_period_(0.0),
sta_(sta),
power_(sta->power())
{
@ -141,6 +142,7 @@ ReadVcdActivities::setActivities()
value_bit++;
}
}
stringDelete(bus_name);
}
}
}

View File

@ -22,9 +22,11 @@ namespace sta {
Vcd::Vcd(StaState *sta) :
StaState(sta),
time_unit_scale_(0.0),
time_scale_(1.0),
time_unit_scale_(1.0),
max_var_name_length_(0),
max_var_width_(0),
min_delta_time_(0),
time_max_(0)
{
}

View File

@ -120,6 +120,7 @@ VcdReader::read(const char *filename)
VcdReader::VcdReader(StaState *sta) :
StaState(sta),
file_line_(0),
stmt_line_(0),
vcd_(nullptr),
time_(0),