summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-14 21:15:21 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-14 21:15:21 +0000
commit3d41f37baba51400e6dd452207287b1159f9abcc (patch)
treeec78bdb7ecfb25447fdec4967e2f03031330e110 /chrome
parent817694ec628728a771a9be586c66706f3739209c (diff)
downloadchromium_src-3d41f37baba51400e6dd452207287b1159f9abcc.zip
chromium_src-3d41f37baba51400e6dd452207287b1159f9abcc.tar.gz
chromium_src-3d41f37baba51400e6dd452207287b1159f9abcc.tar.bz2
Fix sending garbage descriptor if there's no spellcheck dictionary file.
This bug was pointed out by Zhifei Yue <zhifei.yue@gmail.com>. Review URL: http://codereview.chromium.org/7891046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/spellchecker/spellcheck_host_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_host_impl.cc b/chrome/browser/spellchecker/spellcheck_host_impl.cc
index 1dae2300..c49af7e 100644
--- a/chrome/browser/spellchecker/spellcheck_host_impl.cc
+++ b/chrome/browser/spellchecker/spellcheck_host_impl.cc
@@ -145,7 +145,7 @@ void SpellCheckHostImpl::InitForRenderer(RenderProcessHost* process) {
Profile* profile = Profile::FromBrowserContext(process->browser_context());
PrefService* prefs = profile->GetPrefs();
- IPC::PlatformFileForTransit file;
+ IPC::PlatformFileForTransit file = IPC::InvalidPlatformFileForTransit();
if (GetDictionaryFile() != base::kInvalidPlatformFileValue) {
#if defined(OS_POSIX)