summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Copybara-Service <copybara-worker@google.com>2022-11-03 08:58:13 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-03 08:58:13 -0700
commitb45f7e0927569fd9f377b46e34b66efa196ea473 (patch)
tree293c640e3525456968a37bf478a4d792a2c375ca
parent34172a0e9722b6e16f27528721284cf55ee101ab (diff)
parent75173d858538930b65a6754560113527822ed727 (diff)
Merge pull request #1287 from GOGOYAO:patch-1
PiperOrigin-RevId: 485886212 Change-Id: Ic7a710913f8376d07b9bdeb987d007ec04e48465
-rw-r--r--absl/container/internal/inlined_vector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/inlined_vector.h b/absl/container/internal/inlined_vector.h
index e2dd843f..48f31c2e 100644
--- a/absl/container/internal/inlined_vector.h
+++ b/absl/container/internal/inlined_vector.h
@@ -125,8 +125,8 @@ struct DestroyAdapter<A, /* IsTriviallyDestructible */ true> {
template <typename A>
struct Allocation {
- Pointer<A> data;
- SizeType<A> capacity;
+ Pointer<A> data = nullptr;
+ SizeType<A> capacity = 0;
};
template <typename A,