Commit 31660932 by Andrew Haley Committed by Andrew Haley

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
parent d9a6fdb7
2010-01-26 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (registerClosure): Make sure closures is
non NULL.
2010-01-19 Matthias Klose <doko@ubuntu.com> 2010-01-19 Matthias Klose <doko@ubuntu.com>
* Regenerate .class files. * Regenerate .class files.
......
...@@ -689,9 +689,12 @@ void ...@@ -689,9 +689,12 @@ void
_Jv_ClosureList::registerClosure (jclass klass, void *ptr) _Jv_ClosureList::registerClosure (jclass klass, void *ptr)
{ {
_Jv_ClosureList **closures = klass->engine->get_closure_list (klass); _Jv_ClosureList **closures = klass->engine->get_closure_list (klass);
this->ptr = ptr; if (closures)
this->next = *closures; {
*closures = this; this->ptr = ptr;
this->next = *closures;
*closures = this;
}
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment