diff options
author | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:27:01 +0000 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2014-03-17 21:27:01 +0000 |
commit | e31f179ae041fc73fea72dcdc19720e94f65a70d (patch) | |
tree | 85b74092e507c07088ccab3790b3899a40e63c75 /src | |
parent | 6b7be9a00acd4f75d04947c9ecb1a1433723b687 (diff) | |
download | gflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.tar.gz gflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.tar.bz2 gflags-e31f179ae041fc73fea72dcdc19720e94f65a70d.zip |
Fix up use of SafeFOpen.
Diffstat (limited to 'src')
-rw-r--r-- | src/gflags.cc | 2 |
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); |