summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:27:01 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2014-03-17 21:27:01 +0000
commite31f179ae041fc73fea72dcdc19720e94f65a70d (patch)
tree85b74092e507c07088ccab3790b3899a40e63c75 /src
parent6b7be9a00acd4f75d04947c9ecb1a1433723b687 (diff)
downloadgflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.tar.gz
gflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.tar.bz2
gflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.zip
Fix up use of SafeFOpen.
Diffstat (limited to 'src')
-rw-r--r--src/gflags.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gflags.cc b/src/gflags.cc
index 2e0b89c..7033876 100644
--- a/src/gflags.cc
+++ b/src/gflags.cc
@@ -997,7 +997,7 @@ static string ReadFileIntoString(const char* filename) {
char buffer[kBufSize];
string s;
FILE* fp;
- if ((errno = SafeFOpen(&fp, filename, "r") != 0)) PFATAL(filename);
+ if ((errno = SafeFOpen(&fp, filename, "r")) != 0) PFATAL(filename);
size_t n;
while ( (n=fread(buffer, 1, kBufSize, fp)) > 0 ) {
if (ferror(fp)) PFATAL(filename);