]> sourceware.org Git - newlib-cygwin.git/commitdiff
* environ.cc (getearly): Force correct dereference order when inspecting
authorChristopher Faylor <me@cgf.cx>
Mon, 24 Apr 2006 16:42:07 +0000 (16:42 +0000)
committerChristopher Faylor <me@cgf.cx>
Mon, 24 Apr 2006 16:42:07 +0000 (16:42 +0000)
environ table.

winsup/cygwin/ChangeLog
winsup/cygwin/environ.cc

index a04d0b4c7d8f22c82b2057fe984f294345e182dd..708c5112507b261e2dde0558839d0cca6656e8d1 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-24  Christopher Faylor  <cgf@timesys.com>
+
+       * environ.cc (getearly): Force correct dereference order when
+       inspecting environ table.
+
 2006-04-24  Corinna Vinschen  <corinna@vinschen.de>
 
        * select.cc (thread_pipe): Raise sleep time only every 8th iteration.
index d391eb89f6e19bf1c6f77a94344a03f353693df0..3f6908ae5c6faacf735c35013f1e5b101f1c0e77 100644 (file)
@@ -233,7 +233,7 @@ getearly (const char * name, int *)
     {
       len = strlen (name);
       for (; *ptr; ptr++)
-       if (strncasematch (name, *ptr, len) && *ptr[len] == '=')
+       if (strncasematch (name, *ptr, len) && (*ptr)[len] == '=')
          return *ptr + len + 1;
     }
   else if ((len = GetEnvironmentVariable (name, NULL, 0))
This page took 0.035748 seconds and 5 git commands to generate.