commit | a1a19501e82ec6f5a78865901c08448db34ac3f2 | [log] [tgz] |
---|---|---|
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Oct 21 17:14:45 2008 |
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Oct 21 17:14:45 2008 |
tree | 1977c531dc2b9302af0729afe929bfee70ff3729 | |
parent | 1f3c7dd66d07bc26ea2558b4864b1d05a2dd75ae [diff] [blame] |
Fix another crasher in Spell Checker related to file IO. Issue=3039 Review URL: http://codereview.chromium.org/7528 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3659 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/file_util.cc b/base/file_util.cc index 09f8249..49f063e 100644 --- a/base/file_util.cc +++ b/base/file_util.cc
@@ -295,6 +295,8 @@ } bool CloseFile(FILE* file) { + if (file == NULL) + return true; return fclose(file) == 0; }