* environ.cc (getearly): Force correct dereference order when inspecting

environ table.
This commit is contained in:
Christopher Faylor 2006-04-24 16:42:07 +00:00
parent b4c53a7c00
commit a2649dc651
2 changed files with 6 additions and 1 deletions

View 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.

View 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))