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