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