MCPcopy Index your code
hub / github.com/git/git / set_from_env

Function set_from_env

http.c:1358–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358static void set_from_env(char **var, const char *envname)
1359{
1360 const char *val = getenv(envname);
1361 if (val) {
1362 FREE_AND_NULL(*var);
1363 *var = xstrdup(val);
1364 }
1365}
1366
1367static void set_long_from_env(long *var, const char *envname)
1368{

Callers 1

http_initFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected