summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:56:23 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:56:23 +0000
commit628476aa50961d49567577e6442051d2d7d6663b (patch)
tree48c8bb48b919a225eeac620b2ff62734e3d27dbb /base/file_util.cc
parent633d4a34b28c914102342ef7042f643fff3a4451 (diff)
downloadchromium_src-628476aa50961d49567577e6442051d2d7d6663b.zip
chromium_src-628476aa50961d49567577e6442051d2d7d6663b.tar.gz
chromium_src-628476aa50961d49567577e6442051d2d7d6663b.tar.bz2
Return NULL instead of false when appropriate.
(Found by clang.) Review URL: http://codereview.chromium.org/2725010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index 429ea01..b24ffde 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -179,7 +179,7 @@ bool IsDirectoryEmpty(const FilePath& dir_path) {
FILE* CreateAndOpenTemporaryFile(FilePath* path) {
FilePath directory;
if (!GetTempDir(&directory))
- return false;
+ return NULL;
return CreateAndOpenTemporaryFileInDir(directory, path);
}