diff --git a/Changes b/Changes index a3d856485..39759ec0b 100644 --- a/Changes +++ b/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 uninitialized data in verFiles.dat, bug1385. [Al Grant] + * Verilator 4.008 2018-12-01 diff --git a/src/V3File.cpp b/src/V3File.cpp index 664a7e1fe..ef09231cf 100644 --- a/src/V3File.cpp +++ b/src/V3File.cpp @@ -86,9 +86,10 @@ class V3FileDependImp { if (!m_stat.st_mtime) { string fn = filename(); int err = stat(fn.c_str(), &m_stat); - if (err!=0) { - m_stat.st_mtime = 1; - // Not a error... This can occur due to `line directives in the .vpp files + if (err!=0) { + memset(&m_stat, 0, sizeof(m_stat)); + m_stat.st_mtime = 1; + // Not an error... This can occur due to `line directives in the .vpp files UINFO(1,"-Info: File not statable: "<