This commit is contained in:
J. Nick Koston
2026-02-11 11:12:46 -06:00
parent dc2085cc25
commit fb1c495506

View File

@@ -105,6 +105,7 @@ class ProtoVarInt {
/// Parse a varint from buffer. consumed must be a valid pointer (not null).
static optional<ProtoVarInt> parse(const uint8_t *buffer, uint32_t len, uint32_t *consumed) {
assert(consumed != nullptr);
if (len == 0)
return {};