Chromium Code Reviews| Index: chrome/browser/spellchecker.cc |
| =================================================================== |
| --- chrome/browser/spellchecker.cc (revision 3468) |
| +++ chrome/browser/spellchecker.cc (working copy) |
| @@ -510,7 +510,8 @@ |
| // or not. |
| word_ += "\n"; |
| FILE* f = file_util::OpenFile(file_name_, "a+"); |
| - fputs(word_.c_str(), f); |
| + if (f != NULL) |
|
Patrick Johnson
2008/10/17 18:13:15
This looks like a good fix, but won't the silent f
|
| + fputs(word_.c_str(), f); |
| file_util::CloseFile(f); |
| } |