aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2018-04-06 12:42:33 -0700
committerGravatar Noah Eisen <ncteisen@google.com>2018-04-06 12:42:33 -0700
commit52d4c7c8b6c0de4d951b45f366ad6419ac4138d4 (patch)
treec348c2d4d2bb55396ef9e818b16c8aaee4f3acdc /src/cpp
parentcc4fe1b3cd5fea5c240e749e1f1f52f5aaab91a2 (diff)
Ensure lib is initialize for ByteBuffer use
Diffstat (limited to 'src/cpp')
-rw-r--r--src/cpp/util/byte_buffer_cc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpp/util/byte_buffer_cc.cc b/src/cpp/util/byte_buffer_cc.cc
index d976b69440..8700f96d8d 100644
--- a/src/cpp/util/byte_buffer_cc.cc
+++ b/src/cpp/util/byte_buffer_cc.cc
@@ -23,6 +23,8 @@
namespace grpc {
+static internal::GrpcLibraryInitializer g_gli_initializer;
+
Status ByteBuffer::Dump(std::vector<Slice>* slices) const {
slices->clear();
if (!buffer_) {