diff --git a/src/google/protobuf/arena.cc b/src/google/protobuf/arena.cc index bc162e9844..170d004c96 100644 --- a/src/google/protobuf/arena.cc +++ b/src/google/protobuf/arena.cc @@ -193,7 +193,7 @@ SizedPtr SerialArena::Free(Deallocator deallocator) { PROTOBUF_NOINLINE void* SerialArena::AllocateAlignedFallback(size_t n) { AllocateNewBlock(n); - void* ret; + void* ret = nullptr; bool res = MaybeAllocateAligned(n, &ret); ABSL_DCHECK(res); return ret;