MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / safe_str

Function safe_str

src/store/store.c:181–183  ·  view source on GitHub ↗

Safe string: returns "" if NULL. */

Source from the content-addressed store, hash-verified

179
180/* Safe string: returns "" if NULL. */
181static const char *safe_str(const char *s) {
182 return s ? s : "";
183}
184
185/* Safe properties: returns "{}" if NULL. */
186static const char *safe_props(const char *s) {

Callers 6

graph_binary_compareFunction · 0.70
graph_capture_projectFunction · 0.70
graph_node_cursor_stepFunction · 0.70
graph_edge_cursor_stepFunction · 0.70
cbm_store_upsert_nodeFunction · 0.70
cbm_store_insert_edgeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected