diff options
Diffstat (limited to 'src/google/protobuf/generated_message_util.cc')
-rw-r--r-- | src/google/protobuf/generated_message_util.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/google/protobuf/generated_message_util.cc b/src/google/protobuf/generated_message_util.cc index ac321501..58d6bce4 100644 --- a/src/google/protobuf/generated_message_util.cc +++ b/src/google/protobuf/generated_message_util.cc @@ -47,7 +47,12 @@ double NaN() { return std::numeric_limits<double>::quiet_NaN(); } -const ::std::string kEmptyString; +const ::std::string* empty_string_; +ProtobufOnceType empty_string_once_init_; + +void InitEmptyString() { + empty_string_ = new std::string; +} } // namespace internal } // namespace protobuf |