@@ -526,13 +526,13 @@ BundledQuery BundleSerializer::DecodeBundledQuery(
526
526
527
527
auto start_at_bound = DecodeBound (reader, structured_query, " startAt" );
528
528
std::shared_ptr<Bound> start_at;
529
- if (start_at_bound.position ().values_count ) {
529
+ if (start_at_bound.position ().values_count > 0 ) {
530
530
start_at = std::make_shared<Bound>(std::move (start_at_bound));
531
531
}
532
532
533
533
auto end_at_bound = DecodeBound (reader, structured_query, " endAt" );
534
534
std::shared_ptr<Bound> end_at;
535
- if (end_at_bound.position ().values_count ) {
535
+ if (end_at_bound.position ().values_count > 0 ) {
536
536
end_at = std::make_shared<Bound>(std::move (end_at_bound));
537
537
}
538
538
@@ -639,7 +639,7 @@ Bound BundleSerializer::DecodeBound(JsonReader& reader,
639
639
std::vector<json> values = reader.RequiredArray (" values" , bound_json);
640
640
bool before = reader.OptionalBool (" before" , bound_json);
641
641
642
- google_firestore_v1_ArrayValue positions;
642
+ google_firestore_v1_ArrayValue positions{} ;
643
643
SetRepeatedField (&positions.values , &positions.values_count , values,
644
644
[&](const json& j) { return DecodeValue (reader, j); });
645
645
return Bound (positions, before);
0 commit comments