mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Fix internal readWholefile error check, bug518.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user