diff options
author | gritukan <gritukan@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
commit | e72b2fbecff9bceacda41e0dde32e742cfb31592 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /contrib/libs | |
parent | 5ab2c1182d0b02a3880e1869c6351b7ba802a19b (diff) | |
download | ydb-e72b2fbecff9bceacda41e0dde32e742cfb31592.tar.gz |
Restoring authorship annotation for <gritukan@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/protobuf/src/google/protobuf/util/json_util.cc | 4 | ||||
-rw-r--r-- | contrib/libs/protobuf/src/google/protobuf/util/json_util.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/libs/protobuf/src/google/protobuf/util/json_util.cc b/contrib/libs/protobuf/src/google/protobuf/util/json_util.cc index 7dd677211e..d96bd8e17e 100644 --- a/contrib/libs/protobuf/src/google/protobuf/util/json_util.cc +++ b/contrib/libs/protobuf/src/google/protobuf/util/json_util.cc @@ -70,11 +70,11 @@ void ZeroCopyStreamByteSink::Append(const char* bytes, size_t len) { buffer_size_ -= len; return; } - if (buffer_size_ > 0) { + if (buffer_size_ > 0) { memcpy(buffer_, bytes, buffer_size_); bytes += buffer_size_; len -= buffer_size_; - } + } if (!stream_->Next(&buffer_, &buffer_size_)) { // There isn't a way for ByteSink to report errors. buffer_size_ = 0; diff --git a/contrib/libs/protobuf/src/google/protobuf/util/json_util.h b/contrib/libs/protobuf/src/google/protobuf/util/json_util.h index fc63b6b7d5..7be7f4222c 100644 --- a/contrib/libs/protobuf/src/google/protobuf/util/json_util.h +++ b/contrib/libs/protobuf/src/google/protobuf/util/json_util.h @@ -181,7 +181,7 @@ namespace internal { class PROTOBUF_EXPORT ZeroCopyStreamByteSink : public strings::ByteSink { public: explicit ZeroCopyStreamByteSink(io::ZeroCopyOutputStream* stream) - : stream_(stream), buffer_(NULL), buffer_size_(0) {} + : stream_(stream), buffer_(NULL), buffer_size_(0) {} ~ZeroCopyStreamByteSink(); void Append(const char* bytes, size_t len) override; |