* environ.cc (getearly): Force correct dereference order when inspecting
environ table.
This commit is contained in:
parent
b4c53a7c00
commit
a2649dc651
|
@ -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.
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue