aboutsummaryrefslogtreecommitdiff
path: root/icing/index/main/main-index.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icing/index/main/main-index.cc')
-rw-r--r--icing/index/main/main-index.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/icing/index/main/main-index.cc b/icing/index/main/main-index.cc
index aae60c6..85ee4dc 100644
--- a/icing/index/main/main-index.cc
+++ b/icing/index/main/main-index.cc
@@ -651,7 +651,7 @@ libtextclassifier3::Status MainIndex::AddPrefixBackfillHits(
ICING_ASSIGN_OR_RETURN(tmp, backfill_accessor->GetNextHitsBatch());
}
- Hit last_added_hit;
+ Hit last_added_hit(Hit::kInvalidValue);
// The hits in backfill_hits are in the reverse order of how they were added.
// Iterate in reverse to add them to this new posting list in the correct
// order.