]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(unsetenv): Use _environ not __environ.
authorUlrich Drepper <drepper@redhat.com>
Mon, 13 Jul 1998 16:24:37 +0000 (16:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 13 Jul 1998 16:24:37 +0000 (16:24 +0000)
sysdeps/generic/dl-sysdep.c

index e21c14bdbf167a198860f8b327090ed1956da00c..a119a46240db56939d061fc7b84a05ee1cc8567f 100644 (file)
@@ -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.  */