mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
natClass.cc (registerClosure): Make sure closures is non NULL.
2010-01-26 Andrew Haley <aph@redhat.com> * java/lang/natClass.cc (registerClosure): Make sure closures is non NULL. From-SVN: r156257
This commit is contained in:
committed by
Andrew Haley
parent
d9a6fdb74e
commit
31660932a6
@@ -689,9 +689,12 @@ void
|
||||
_Jv_ClosureList::registerClosure (jclass klass, void *ptr)
|
||||
{
|
||||
_Jv_ClosureList **closures = klass->engine->get_closure_list (klass);
|
||||
this->ptr = ptr;
|
||||
this->next = *closures;
|
||||
*closures = this;
|
||||
if (closures)
|
||||
{
|
||||
this->ptr = ptr;
|
||||
this->next = *closures;
|
||||
*closures = this;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user