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

Function safe_props

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

Safe properties: returns "{}" if NULL. */

Source from the content-addressed store, hash-verified

179
180/* Safe properties: returns "{}" if NULL. */
181static const char *safe_props(const char *s) {
182 return (s && s[0]) ? s : "{}";
183}
184
185/* Duplicate a string onto the heap. */
186static char *heap_strdup(const char *s) {

Callers 2

cbm_store_upsert_nodeFunction · 0.85
cbm_store_insert_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected