Fix internal readWholefile error check, bug518.

This commit is contained in:
Wilson Snyder 2012-05-22 10:20:35 -04:00
parent 1bc1ee9e08
commit 1d12b47cb8

View File

@ -302,7 +302,7 @@ private:
} }
bool readContentsFile(const string& filename, StrList& outl) { bool readContentsFile(const string& filename, StrList& outl) {
int fd = open (filename.c_str(), O_RDONLY); int fd = open (filename.c_str(), O_RDONLY);
if (!fd) return false; if (fd<0) return false;
m_readEof = false; m_readEof = false;
readBlocks(fd, -1, outl); readBlocks(fd, -1, outl);
close(fd); close(fd);