Index: runtime/vm/regexp_assembler.cc |
diff --git a/runtime/vm/regexp_assembler.cc b/runtime/vm/regexp_assembler.cc |
index ac8f360ec1cff8403890386caef2839d2266155d..ace86912cfc151909945fd01429d14c0bacc68d4 100644 |
--- a/runtime/vm/regexp_assembler.cc |
+++ b/runtime/vm/regexp_assembler.cc |
@@ -1798,8 +1798,8 @@ Value* IRRegExpMacroAssembler::LoadCodeUnitsAt(LocalVariable* index, |
Value* pattern_val = BindLoadLocal(*string_param_); |
if (RawObject::IsExternalStringClassId(specialization_cid_)) { |
// The data of an external string is stored through two indirections. |
- intptr_t external_offset; |
- intptr_t data_offset; |
+ intptr_t external_offset = 0; |
+ intptr_t data_offset = 0; |
if (specialization_cid_ == kExternalOneByteStringCid) { |
external_offset = ExternalOneByteString::external_data_offset(); |
data_offset = RawExternalOneByteString::ExternalData::data_offset(); |