diff options
author | gritukan <gritukan@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
commit | 5ab2c1182d0b02a3880e1869c6351b7ba802a19b (patch) | |
tree | f1d99c4a9a7e3f3c2ed90004db7cd7dc8502c2ce /contrib/libs | |
parent | 2a4a975b112fa0fa138abc7457fe67e0e1e7fd02 (diff) | |
download | ydb-5ab2c1182d0b02a3880e1869c6351b7ba802a19b.tar.gz |
Restoring authorship annotation for <gritukan@yandex-team.ru>. Commit 1 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 d96bd8e17e..7dd677211e 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 7be7f4222c..fc63b6b7d5 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; |