1 #include "../git-compat-util.h"
3 void gitunsetenv (const char *name
)
11 for (src
= dst
= 0; environ
[src
]; ++src
) {
13 enln
= strlen(environ
[src
]);
15 /* might match, and can test for '=' safely */
16 if (0 == strncmp (environ
[src
], name
, nmln
)
17 && '=' == environ
[src
][nmln
])
18 /* matches, so skip */
21 environ
[dst
] = environ
[src
];