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

Function ws_env_restore

tests/test_workspace.c:424–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424static void ws_env_restore(const char *name, char *saved) {
425 if (saved) {
426 (void)cbm_setenv(name, saved, 1);
427 free(saved);
428 } else {
429 (void)cbm_unsetenv(name);
430 }
431}
432
433/* The policy compares the home directory against canonical paths, so the
434 * helper must hand out the canonical form. A plain temp directory already

Callers 1

test_workspace.cFile · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected