diff options
author | Elliott Hughes <enh@google.com> | 2010-10-05 11:23:18 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-10-05 11:23:18 -0700 |
commit | 807b6b36605a2970f69dc767fee84a1b2a31e5e3 (patch) | |
tree | a3dae68b1f91145078eed0911843c24afbb59152 /i18n | |
parent | a949bec56ed8b133914342886878d6f630a260cd (diff) | |
download | icu4c-807b6b36605a2970f69dc767fee84a1b2a31e5e3.tar.gz |
Apply my upstream patch for http://bugs.icu-project.org/trac/ticket/8005.
Fixes an uninitialized field access found by valgrind. Committed upstream for
ICU 4.6, which won't be released in time.
Bug: 2225752
Change-Id: Iece472dc4939661d1ad3525a0f0ff03714d1c40f
Diffstat (limited to 'i18n')
-rw-r--r-- | i18n/regexcmp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/i18n/regexcmp.cpp b/i18n/regexcmp.cpp index b41ef457..b9ec6dcc 100644 --- a/i18n/regexcmp.cpp +++ b/i18n/regexcmp.cpp @@ -58,6 +58,7 @@ RegexCompile::RegexCompile(RegexPattern *rxp, UErrorCode &status) : fRXPat = rxp; fScanIndex = 0; + fLastChar = -1; fPeekChar = -1; fLineNum = 1; fCharNum = 0; |