| 919 | } |
| 920 | |
| 921 | static void cli_activation_save_env(char **home_out, char **cache_out) { |
| 922 | const char *home = getenv("HOME"); |
| 923 | const char *cache = getenv("CBM_CACHE_DIR"); |
| 924 | *home_out = home ? strdup(home) : NULL; |
| 925 | *cache_out = cache ? strdup(cache) : NULL; |
| 926 | } |
| 927 | |
| 928 | static void cli_activation_restore_env(char *home, char *cache) { |
| 929 | if (home) { |
no outgoing calls
no test coverage detected