mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-25 09:13:59 +08:00
natVMSecurityManager.cc (getClassContext): Use maxlen instead of len for loop bound.
* java/lang/natVMSecurityManager.cc (getClassContext): Use maxlen instead of len for loop bound. From-SVN: r68153
This commit is contained in:
parent
99bf9b5558
commit
7b4a4fceef
@ -1,3 +1,8 @@
|
||||
2003-06-18 Matt Kraai <kraai@alumni.cmu.edu>
|
||||
|
||||
* java/lang/natVMSecurityManager.cc (getClassContext):
|
||||
Use maxlen instead of len for loop bound.
|
||||
|
||||
2003-06-18 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* gnu/java/nio/SelectorImpl.java
|
||||
|
@ -28,7 +28,7 @@ java::lang::VMSecurityManager::getClassContext ()
|
||||
int maxlen = t->length();
|
||||
|
||||
int len = 0;
|
||||
for (int i=0; i<len; i++)
|
||||
for (int i=0; i<maxlen; i++)
|
||||
{
|
||||
jclass klass = t->classAt(i);
|
||||
if (klass != NULL && klass != &java::lang::VMSecurityManager::class$
|
||||
@ -41,7 +41,7 @@ java::lang::VMSecurityManager::getClassContext ()
|
||||
NULL);
|
||||
|
||||
len = 0;
|
||||
for (int i=0; i<len; i++)
|
||||
for (int i=0; i<maxlen; i++)
|
||||
{
|
||||
jclass klass = t->classAt(i);
|
||||
if (klass != NULL && klass != &java::lang::VMSecurityManager::class$
|
||||
|
Loading…
Reference in New Issue
Block a user