protobuf-c: pack_buffer_packed_payload(): Remove unused increment

Since this case immediately returns, the `rv` variable is not used.

See https://github.com/protobuf-c/protobuf-c/issues/517.
This commit is contained in:
Robert Edmonds 2023-07-08 21:34:09 -04:00
parent bee044643e
commit 951a5278e0

View File

@ -1888,7 +1888,6 @@ pack_buffer_packed_payload(const ProtobufCFieldDescriptor *field,
for (i = 0; i < count; i++) {
unsigned len = boolean_pack(((protobuf_c_boolean *) array)[i], scratch);
buffer->append(buffer, len, scratch);
rv += len;
}
return count;
default: