From 1d12b47cb86349cbe2352be65ae3b0905d2b1f51 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 22 May 2012 10:20:35 -0400 Subject: [PATCH] Fix internal readWholefile error check, bug518. --- src/V3File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3File.cpp b/src/V3File.cpp index 867806839..513410f44 100644 --- a/src/V3File.cpp +++ b/src/V3File.cpp @@ -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);