mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02: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:
@@ -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$
|
||||
|
||||
Reference in New Issue
Block a user