Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: chrome/third_party/hunspell/src/hunspell/affixmgr.cxx

Issue 113324: Apply codereview/115228 to 172.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/third_party/hunspell/src/hunspell/affentry.cxx ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/third_party/hunspell/src/hunspell/affixmgr.cxx
===================================================================
--- chrome/third_party/hunspell/src/hunspell/affixmgr.cxx (revision 15935)
+++ chrome/third_party/hunspell/src/hunspell/affixmgr.cxx (working copy)
@@ -3780,7 +3780,12 @@
ptr = (struct affentry *) malloc(numents * sizeof(struct affentry));
if (!ptr) return 1;
ptr->opts = ff;
- if (utf8) ptr->opts += aeUTF8;
+ if (utf8) {
+ ptr->opts += aeUTF8;
+ for (int i = 0; i < numents; ++i)
+ for (int j = 0; j < 8; ++j)
+ ptr[i].conds.utf8.wlen[j] = 0;
+ }
if (pHMgr->is_aliasf()) ptr->opts += aeALIASF;
#ifdef HUNSPELL_EXPERIMENTAL
if (pHMgr->is_aliasm()) ptr->opts += aeALIASM;
« no previous file with comments | « chrome/third_party/hunspell/src/hunspell/affentry.cxx ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698