From: Ulrich Drepper Date: Mon, 13 Jul 1998 16:24:37 +0000 (+0000) Subject: (unsetenv): Use _environ not __environ. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8470e85cfe66747bb11109054801f88d27066c14;p=thirdparty%2Fglibc.git (unsetenv): Use _environ not __environ. --- diff --git a/sysdeps/generic/dl-sysdep.c b/sysdeps/generic/dl-sysdep.c index e21c14bdbf1..a119a46240d 100644 --- a/sysdeps/generic/dl-sysdep.c +++ b/sysdeps/generic/dl-sysdep.c @@ -233,7 +233,7 @@ unsetenv (const char *name) const size_t len = strlen (name); char **ep; - for (ep = __environ; *ep != NULL; ++ep) + for (ep = _environ; *ep != NULL; ++ep) if (!strncmp (*ep, name, len) && (*ep)[len] == '=') { /* Found it. Remove this pointer by moving later ones back. */