forked from github/verilator
Fix internal readWholefile error check, bug518.
This commit is contained in:
parent
1bc1ee9e08
commit
1d12b47cb8
@ -302,7 +302,7 @@ private:
|
||||
}
|
||||
bool readContentsFile(const string& filename, StrList& outl) {
|
||||
int fd = open (filename.c_str(), O_RDONLY);
|
||||
if (!fd) return false;
|
||||
if (fd<0) return false;
|
||||
m_readEof = false;
|
||||
readBlocks(fd, -1, outl);
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user