diff options
author | Yash Tibrewal <yashkt@google.com> | 2019-01-10 13:22:37 -0800 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2019-01-10 13:22:37 -0800 |
commit | f1e9306c702ee83f4808597212824301d3a909a5 (patch) | |
tree | 10026abb0b2f2161a8cf38af535bf9203594ede8 /examples | |
parent | 7a5a9544ef9afb8456e5241741ceb387153bfb38 (diff) |
return empty string instead of nullptr
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cpp/keyvaluestore/server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cpp/keyvaluestore/server.cc b/examples/cpp/keyvaluestore/server.cc index 75d30eb1f8..8dc8752eda 100644 --- a/examples/cpp/keyvaluestore/server.cc +++ b/examples/cpp/keyvaluestore/server.cc @@ -57,7 +57,7 @@ const char * get_value_from_map(const char* key) { return kvs_map[i].value; } } - return nullptr; + return ""; } // Logic and data behind the server's behavior. |