Commit 951a5278 authored by Robert Edmonds's avatar Robert Edmonds

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.
parent bee04464
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment