X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FFileUtil.h;h=0913b23d2385510a86928ee2e347e0b3d767df0f;hp=92598093a836a0df1f5535f2809765722da10352;hb=20272b4ec1c1ac41cc6bd408b8c454794873d4fb;hpb=d4aacd244f21e76dce685365acc281a9015897c1 diff --git a/folly/FileUtil.h b/folly/FileUtil.h index 92598093..0913b23d 100644 --- a/folly/FileUtil.h +++ b/folly/FileUtil.h @@ -131,7 +131,9 @@ bool readFile( // Obtain file size: struct stat buf; - if (fstat(fd, &buf) == -1) return false; + if (fstat(fd, &buf) == -1) { + return false; + } // Some files (notably under /proc and /sys on Linux) lie about // their size, so treat the size advertised by fstat under advise // but don't rely on it. In particular, if the size is zero, we