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

Function safe_str

src/store/store.c:177–179  ·  view source on GitHub ↗

Safe string: returns "" if NULL. */

Source from the content-addressed store, hash-verified

175
176/* Safe string: returns "" if NULL. */
177static const char *safe_str(const char *s) {
178 return s ? s : "";
179}
180
181/* Safe properties: returns "{}" if NULL. */
182static const char *safe_props(const char *s) {

Callers 2

cbm_store_upsert_nodeFunction · 0.70
cbm_store_insert_edgeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected