Переглянути джерело

return empty string instead of nullptr

Yash Tibrewal 6 роки тому
батько
коміт
f1e9306c70
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      examples/cpp/keyvaluestore/server.cc

+ 1 - 1
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.