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

Function safe_str

src/store/store.c:176–178  ·  view source on GitHub ↗

Safe string: returns "" if NULL. */

Source from the content-addressed store, hash-verified

174
175/* Safe string: returns "" if NULL. */
176static const char *safe_str(const char *s) {
177 return s ? s : "";
178}
179
180/* Safe properties: returns "{}" if NULL. */
181static 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