From e31f179ae041fc73fea72dcdc19720e94f65a70d Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Mon, 17 Mar 2014 21:27:01 +0000 Subject: [PATCH] Fix up use of SafeFOpen. --- src/gflags.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);