Fix uninitialized data in verFiles.dat, bug1385.
This commit is contained in:
parent
8a4aeddbb0
commit
0e1f8db0d1
2
Changes
2
Changes
|
|
@ -17,6 +17,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
|
||||||
|
|
||||||
**** Fix missing too many digits warning, bug1380. [Jonathan Kimmitt]
|
**** Fix missing too many digits warning, bug1380. [Jonathan Kimmitt]
|
||||||
|
|
||||||
|
**** Fix uninitialized data in verFiles.dat, bug1385. [Al Grant]
|
||||||
|
|
||||||
|
|
||||||
* Verilator 4.008 2018-12-01
|
* Verilator 4.008 2018-12-01
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,8 +87,9 @@ class V3FileDependImp {
|
||||||
string fn = filename();
|
string fn = filename();
|
||||||
int err = stat(fn.c_str(), &m_stat);
|
int err = stat(fn.c_str(), &m_stat);
|
||||||
if (err!=0) {
|
if (err!=0) {
|
||||||
|
memset(&m_stat, 0, sizeof(m_stat));
|
||||||
m_stat.st_mtime = 1;
|
m_stat.st_mtime = 1;
|
||||||
// Not a error... This can occur due to `line directives in the .vpp files
|
// Not an error... This can occur due to `line directives in the .vpp files
|
||||||
UINFO(1,"-Info: File not statable: "<<filename()<<endl);
|
UINFO(1,"-Info: File not statable: "<<filename()<<endl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue