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
2 changed files with 7 additions and 2 deletions
libjava/java/lang
|
@ -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…
Add table
Add a link
Reference in a new issue