Fix protobuf-c coverity warnings